pdfmm: fix build on (at least) macOS
The package isn't marked linux-only, but pulling locale from glibc effectively limited it to linux. Using the generalized locale attr gets it building on macOS. Also: - While looking into this, I noticed that the script only uses xmessage if zenity isn't present, so I think we can drop that dependency. - Not super familiar with what the package should run on, but I went ahead and set the platform meta based on what I've personally verified.
This commit is contained in:
parent
6507feebbd
commit
f318c22bbe
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue