diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-09-09 17:48:11 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-09-09 17:48:11 +0000 |
commit | f571bc19d32f53c0aebc9ccd976f69c01d3c5de7 (patch) | |
tree | 3b08cceea70b6772797350d9fdaa46adcc959740 /pkgs/os-specific/linux/klibc | |
parent | 6fd70d9c4749f8a3526c5c4e1764a54b416d5de8 (diff) |
Trick to make klibc build for what we may use it for, at least.
svn path=/nixpkgs/branches/stdenv-updates/; revision=23705
Diffstat (limited to 'pkgs/os-specific/linux/klibc')
-rw-r--r-- | pkgs/os-specific/linux/klibc/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 02641a5a16bbe..b8cd2b18bc7c4 100644 --- a/pkgs/os-specific/linux/klibc/default.nix +++ b/pkgs/os-specific/linux/klibc/default.nix @@ -16,6 +16,15 @@ stdenv.mkDerivation { }; patches = [ ./make382.patch ]; + + # Trick to make this build on nix. It expects to have the kernel sources + # instead of only the linux kernel headers. + # So it cannot run the 'make headers_install' it wants to run. + # We don't install the headers, so klibc will not be useful as libc, but + # usually in nixpkgs we only use the userspace tools comming with klibc. + prePatch = '' + sed -i -e /headers_install/d scripts/Kbuild.install + ''; makeFlags = baseMakeFlags; |