diff options
Diffstat (limited to 'overlays/pdf-redact-tools.nix')
-rw-r--r-- | overlays/pdf-redact-tools.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/overlays/pdf-redact-tools.nix b/overlays/pdf-redact-tools.nix new file mode 100644 index 00000000..0f779a26 --- /dev/null +++ b/overlays/pdf-redact-tools.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | { final, prev, ... }: { | ||
2 | pdf-redact-tools = prev.stdenv.mkDerivation { | ||
3 | pname = "pdf-redact-tools"; | ||
4 | version = "0.1.2"; | ||
5 | |||
6 | src = prev.fetchFromGitHub { | ||
7 | owner = "firstlookmedia"; | ||
8 | repo = "pdf-redact-tools"; | ||
9 | rev = "e407942fa19027718b706033d460a1dec2097094"; | ||
10 | sha256 = "sha256-mnz43HLau4PQ2xYqTx67I0BD+fVe0lRxQz2uAeCsaX0="; | ||
11 | }; | ||
12 | |||
13 | buildInputs = [ | ||
14 | (final.python27.withPackages (ps: with ps; [])) | ||
15 | final.makeWrapper | ||
16 | ]; | ||
17 | |||
18 | buildPhase = "true"; | ||
19 | |||
20 | installPhase = '' | ||
21 | mkdir -p $out/bin | ||
22 | install -m 0755 -t $out/bin \ | ||
23 | pdf-redact-tools | ||
24 | wrapProgram $out/bin/pdf-redact-tools \ | ||
25 | --prefix PATH : ${prev.lib.makeBinPath (with final; [ imagemagick ghostscriptX exiftool ])} | ||
26 | ''; | ||
27 | }; | ||
28 | } | ||