From 31832d598650eb17ba24a81680039b1973e80158 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 25 Oct 2022 22:20:37 +0200 Subject: ... --- overlays/pdf-redact-tools.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 overlays/pdf-redact-tools.nix (limited to 'overlays/pdf-redact-tools.nix') 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 @@ +{ 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 ])} + ''; + }; +} -- cgit v1.2.3