Merge pull request #302415 from abathur/generalize_pdfmm

pdfmm: fix build on (at least) macOS
This commit is contained in:
Yt 2024-04-16 01:17:01 +00:00 committed by GitHub
commit 86074c04d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -2,12 +2,11 @@
, coreutils
, fetchFromGitHub
, ghostscript
, glibc
, locale
, gnome
, gnused
, lib
, resholve
, xorg
}:
resholve.mkDerivation rec {
@ -35,15 +34,16 @@ resholve.mkDerivation rec {
inputs = [
coreutils
ghostscript
glibc
locale
gnome.zenity
gnused
xorg.xmessage
];
fake = {
# only need xmessage if zenity is unavailable
external = [ "xmessage" ];
};
execer = [
"cannot:${glibc.bin}/bin/locale"
"cannot:${gnome.zenity}/bin/zenity"
"cannot:${xorg.xmessage}/bin/xmessage"
];
keep."$toutLu" = true;
};
@ -54,5 +54,6 @@ resholve.mkDerivation rec {
license = licenses.gpl3Only;
maintainers = with maintainers; [ urandom ];
mainProgram = "pdfmm";
platforms = platforms.linux ++ platforms.darwin;
};
}