Skip to content

Commit

Permalink
cups: fix on Darwin
Browse files Browse the repository at this point in the history
Kinda fix, anyway. Enough to proceed with other stuff :)
  • Loading branch information
copumpkin committed Apr 7, 2017
1 parent bde6e3d commit aa31d4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/misc/cups/default.nix
Expand Up @@ -53,6 +53,11 @@ stdenv.mkDerivation rec {
"--disable-launchd"
];

# XXX: Hackery until https://github.com/NixOS/nixpkgs/issues/24693
preBuild = if stdenv.isDarwin then ''
export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
'' else null;

installFlags =
[ # Don't try to write in /var at build time.
"CACHEDIR=$(TMPDIR)/dummy"
Expand Down Expand Up @@ -109,6 +114,6 @@ stdenv.mkDerivation rec {
description = "A standards-based printing system for UNIX";
license = licenses.gpl2; # actually LGPL for the library and GPL for the rest
maintainers = with maintainers; [ jgeerds ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

0 comments on commit aa31d4b

Please sign in to comment.