diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-10-25 22:20:37 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-10-25 22:20:37 +0200 |
commit | 31832d598650eb17ba24a81680039b1973e80158 (patch) | |
tree | fc4898d1d336f443ac6080a6582ecebf67f27096 /overlays/pdf-redact-tools.nix | |
parent | a9dcb53f534de97c8ef7601443e41d7487e1ca17 (diff) | |
download | nixos-31832d598650eb17ba24a81680039b1973e80158.tar nixos-31832d598650eb17ba24a81680039b1973e80158.tar.gz nixos-31832d598650eb17ba24a81680039b1973e80158.tar.bz2 nixos-31832d598650eb17ba24a81680039b1973e80158.tar.xz nixos-31832d598650eb17ba24a81680039b1973e80158.zip |
...
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 | } | ||