summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/nichtparasoup/default.nix
blob: cf34c683fa113fb04df328319e391a035f3134da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, pkgs, ... }:
let
  py = pkgs.python3Packages.python.withPackages (p: [
    p.werkzeug
    p.beautifulsoup4
  ]);
  src = pkgs.fetchFromGitHub {
    owner = "k4cg";
    repo = "nichtparasoup";
    rev = "cf164b5";
    sha256 = "09bwh76agp14j8rv7bp47jcwhffc1b0bak0ikvzxyphph5lyidk9";
  };
  patchedSrc = stdenv.mkDerivation {
    name = "nichtparasoup";
    inherit src;
    patches = [ ./exception.patch ];
    phases = [ "unpackPhase" "patchPhase" "installPhase" ];
    installPhase = ''
      mkdir -p $out
      cp -r * $out/
    '';
  };
in pkgs.writeDashBin "nichtparasoup" ''
  ${py}/bin/python ${patchedSrc}/nichtparasoup.py "$@"
''