1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

gnome3.gtk: fix build on darwin

The .la file does not exist on darwin.
This commit is contained in:
Robin Gloster 2016-08-27 08:00:20 +00:00
parent 8a84fc0217
commit e646d2c07c
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
++ optional cupsSupport cups;
#TODO: colord?
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
NIX_LDFLAGS = optionalString stdenv.isDarwin "-lintl";
# demos fail to install, no idea where's the problem
preConfigure = "sed '/^SRC_SUBDIRS /s/demos//' -i Makefile.in";
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
"--enable-wayland-backend"
];
postInstall = ''
postInstall = optionalString (!stdenv.isDarwin) ''
substituteInPlace "$out/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.la" \
--replace '-L${gmp.dev}/lib' '-L${gmp.out}/lib'
'';