Merge pull request #212772 from urandom2/pdfmm

Fixes https://github.com/NixOS/nixpkgs/issues/212088

authored by Sandro and committed by GitHub cebbb040 4296d0dd

+59
+57
pkgs/applications/office/pdfmm/default.nix
··· 1 + { bash 2 + , coreutils 3 + , fetchFromGitHub 4 + , ghostscript 5 + , glibc 6 + , gnome 7 + , gnused 8 + , lib 9 + , resholve 10 + , xorg 11 + }: 12 + 13 + resholve.mkDerivation rec { 14 + pname = "pdfmm"; 15 + version = "unstable-2019-01-24"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "jpfleury"; 19 + repo = pname; 20 + rev = "45ee7796659d23bb030bf06647f1af85e1d2b52d"; 21 + hash = "sha256-TOISD/2g7MwnLrtpMnfr2Ln0IiwlJVNavWl4eh/uwN0="; 22 + }; 23 + 24 + dontBuild = true; 25 + 26 + installPhase = '' 27 + install -Dm 0755 pdfmm $out/bin/pdfmm 28 + ''; 29 + 30 + solutions.default = { 31 + scripts = [ 32 + "bin/pdfmm" 33 + ]; 34 + interpreter = "${bash}/bin/bash"; 35 + inputs = [ 36 + coreutils 37 + ghostscript 38 + glibc 39 + gnome.zenity 40 + gnused 41 + xorg.xmessage 42 + ]; 43 + execer = [ 44 + "cannot:${glibc.bin}/bin/locale" 45 + "cannot:${gnome.zenity}/bin/zenity" 46 + "cannot:${xorg.xmessage}/bin/xmessage" 47 + ]; 48 + keep."$toutLu" = true; 49 + }; 50 + 51 + meta = with lib; { 52 + description = "Graphical assistant to reduce the size of a PDF file"; 53 + homepage = "https://github.com/jpfleury/pdfmm"; 54 + license = licenses.gpl3Only; 55 + maintainers = with maintainers; [ urandom ]; 56 + }; 57 + }
+2
pkgs/top-level/all-packages.nix
··· 31413 31413 31414 31414 pdfmixtool = libsForQt5.callPackage ../applications/office/pdfmixtool { }; 31415 31415 31416 + pdfmm = callPackage ../applications/office/pdfmm {}; 31417 + 31416 31418 pig = callPackage ../applications/networking/cluster/pig { }; 31417 31419 31418 31420 pijul = callPackage ../applications/version-management/pijul { };