diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-01-27 12:01:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 12:01:56 +0000 |
commit | e11b11e7383dc9e79174c572b949a1a5884d124d (patch) | |
tree | 784140f4cf5095ede60e81d23188f3a6875f6aca /pkgs/applications/office/pdfmm/default.nix | |
parent | dcb1b49be6864d21da07ad41559d3b08967e2232 (diff) | |
parent | 92b7725154fcb01cc3b5804025e89d6a2941cc77 (diff) | |
download | nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar.gz nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar.bz2 nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar.lz nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar.xz nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.tar.zst nixpkgs-e11b11e7383dc9e79174c572b949a1a5884d124d.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/office/pdfmm/default.nix')
-rw-r--r-- | pkgs/applications/office/pdfmm/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/applications/office/pdfmm/default.nix b/pkgs/applications/office/pdfmm/default.nix new file mode 100644 index 00000000000..1a61f786de2 --- /dev/null +++ b/pkgs/applications/office/pdfmm/default.nix @@ -0,0 +1,57 @@ +{ bash +, coreutils +, fetchFromGitHub +, ghostscript +, glibc +, gnome +, gnused +, lib +, resholve +, xorg +}: + +resholve.mkDerivation rec { + pname = "pdfmm"; + version = "unstable-2019-01-24"; + + src = fetchFromGitHub { + owner = "jpfleury"; + repo = pname; + rev = "45ee7796659d23bb030bf06647f1af85e1d2b52d"; + hash = "sha256-TOISD/2g7MwnLrtpMnfr2Ln0IiwlJVNavWl4eh/uwN0="; + }; + + dontBuild = true; + + installPhase = '' + install -Dm 0755 pdfmm $out/bin/pdfmm + ''; + + solutions.default = { + scripts = [ + "bin/pdfmm" + ]; + interpreter = "${bash}/bin/bash"; + inputs = [ + coreutils + ghostscript + glibc + gnome.zenity + gnused + xorg.xmessage + ]; + execer = [ + "cannot:${glibc.bin}/bin/locale" + "cannot:${gnome.zenity}/bin/zenity" + "cannot:${xorg.xmessage}/bin/xmessage" + ]; + keep."$toutLu" = true; + }; + + meta = with lib; { + description = "Graphical assistant to reduce the size of a PDF file"; + homepage = "https://github.com/jpfleury/pdfmm"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ urandom ]; + }; +} |