git.iko.soy/typeable/nixpkgs
on master help sign in
glibc, kernel-headers: Fix some eval errors on Darwin

Need to get the source to get elf.h

commit846b44b2e958cd38c02f70847736598ce7e4c7a0 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateTue 11 Sep 2018, 13:27 (8 years ago) parentd7e3dbe
2 files changed+3−6
pkgs/development/libraries/glibc/default.nix+2−3 pkgs/os-specific/linux/kernel-headers/default.nix+1−3
pkgs/development/libraries/glibc/default.nix+2−3
@@ -5,8 +5,6 @@
55, withGd ? false
66}:
77
8−assert stdenv.cc.isGNU;
9−
108callPackage ./common.nix { inherit stdenv; } {
119 name = "glibc" + stdenv.lib.optionalString withGd "-gd";
1210
@@ -96,7 +94,8 @@ callPackage ./common.nix { inherit stdenv; } {
9694 mv $bin/bin/getconf_ $bin/bin/getconf
9795 '';
9896
99− separateDebugInfo = true;
97+ # Hack to get around eval issue.
98+ separateDebugInfo = !stdenv.isDarwin;
10099
101100 meta.description = "The GNU C Library";
102101 }
pkgs/os-specific/linux/kernel-headers/default.nix+1−3
@@ -2,8 +2,6 @@
22, fetchurl, perl
33}:
44
5−assert stdenvNoCC.hostPlatform.isLinux;
6−
75let
86 common = { version, sha256, patches ? null }: stdenvNoCC.mkDerivation {
97 name = "linux-headers-${version}";
@@ -13,7 +11,7 @@ let
1311 inherit sha256;
1412 };
1513
16− ARCH = stdenvNoCC.hostPlatform.platform.kernelArch;
14+ ARCH = stdenvNoCC.hostPlatform.platform.kernelArch or (throw "missing kernelArch");
1715
1816 # It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
1917 # We do this so we have a build->build, not build->host, C compiler.