diff options
author | Colin Arnott <colin@urandom.co.uk> | 2023-01-26 12:32:27 +0000 |
---|---|---|
committer | Colin Arnott <colin@urandom.co.uk> | 2023-01-26 12:40:21 +0000 |
commit | 71f63237337afdbb4186cf5f3bd8960ac6ac2d8c (patch) | |
tree | 856ecfd9dc51ac82dc0bff9f7d665d79a01f39dc /pkgs/applications/office/pdfmm | |
parent | 396d53eb1efedf16e231ff1282ab88444ccddbb6 (diff) | |
download | nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar.gz nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar.bz2 nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar.lz nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar.xz nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.tar.zst nixlib-71f63237337afdbb4186cf5f3bd8960ac6ac2d8c.zip |
pdfmm: init at unstable-2019-01-24
Fixes #212088
Diffstat (limited to 'pkgs/applications/office/pdfmm')
-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 000000000000..1a61f786de2f --- /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 ]; + }; +} |