blob: 0f779a2683fb968535ee6c9245169dd878537441 (
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
26
27
28
|
{ final, prev, ... }: {
pdf-redact-tools = prev.stdenv.mkDerivation {
pname = "pdf-redact-tools";
version = "0.1.2";
src = prev.fetchFromGitHub {
owner = "firstlookmedia";
repo = "pdf-redact-tools";
rev = "e407942fa19027718b706033d460a1dec2097094";
sha256 = "sha256-mnz43HLau4PQ2xYqTx67I0BD+fVe0lRxQz2uAeCsaX0=";
};
buildInputs = [
(final.python27.withPackages (ps: with ps; []))
final.makeWrapper
];
buildPhase = "true";
installPhase = ''
mkdir -p $out/bin
install -m 0755 -t $out/bin \
pdf-redact-tools
wrapProgram $out/bin/pdf-redact-tools \
--prefix PATH : ${prev.lib.makeBinPath (with final; [ imagemagick ghostscriptX exiftool ])}
'';
};
}
|