From f571bc19d32f53c0aebc9ccd976f69c01d3c5de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 9 Sep 2010 17:48:11 +0000 Subject: [PATCH] Trick to make klibc build for what we may use it for, at least. svn path=/nixpkgs/branches/stdenv-updates/; revision=23705 --- pkgs/os-specific/linux/klibc/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 02641a5a16b..b8cd2b18bc7 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;