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

treewide: fix darwin builds by using getOutput

This fixes eval for pkgs referring to optional static output
This commit is contained in:
Robin Gloster 2016-08-25 08:44:20 +00:00
parent 113fbe910e
commit eddc0a5549
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882
4 changed files with 12 additions and 4 deletions

View file

@ -23,7 +23,10 @@ let
license = with stdenv.lib.licenses; if useV16 then unfreeRedistributable else gpl3;
in
stdenv.mkDerivation (boolectorPkg // {
buildInputs = [ zlib stdenv.cc.libc.static zlib.static ];
buildInputs = [
zlib zlib.static (stdenv.lib.getOutput "static" stdenv.cc.libc)
];
enableParallelBuilding = false;
installPhase = ''

View file

@ -6,7 +6,9 @@ in
stdenv.mkDerivation rec {
name = "prelink-${version}";
buildInputs = [ libelf stdenv.cc.libc stdenv.cc.libc.static ];
buildInputs = [
libelf stdenv.cc.libc (stdenv.lib.getOutput "static" stdenv.cc.libc)
];
src = fetchurl {
url = "http://people.redhat.com/jakub/prelink/prelink-${version}.tar.bz2";

View file

@ -10,7 +10,7 @@ let
rev = "refs/tags/v${version}";
};
buildInputs = [
stdenv.cc.libc.static
(stdenv.lib.getOutput "static" stdenv.cc.libc)
];
in
stdenv.mkDerivation {

View file

@ -14,7 +14,10 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ e2fsprogs libuuid stdenv.cc.libc stdenv.cc.libc.static ];
buildInputs = [
e2fsprogs libuuid stdenv.cc.libc
(stdenv.lib.getOutput "static" stdenv.cc.libc)
];
enableParallelBuilding = true;