From 461783c3a55011f368e868506b5570a93c331a9c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 23 Oct 2006 17:43:55 +0000 Subject: [PATCH] * useDietLibC: work properly on impure stdenvs. * dietlibc: pass glibc explicitly. svn path=/nixpkgs/trunk/; revision=6807 --- pkgs/os-specific/linux/dietlibc/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/linux/dietlibc/default.nix b/pkgs/os-specific/linux/dietlibc/default.nix index 708933ffa33..e1911775942 100644 --- a/pkgs/os-specific/linux/dietlibc/default.nix +++ b/pkgs/os-specific/linux/dietlibc/default.nix @@ -1,6 +1,6 @@ -{stdenv, fetchurl}: +{stdenv, fetchurl, glibc}: -assert stdenv.system == "i686-linux"; +assert stdenv.isLinux; stdenv.mkDerivation { name = "dietlibc-0.30"; @@ -9,7 +9,7 @@ stdenv.mkDerivation { md5 = "2465d652fff6f1fad3da3b98e60e83c9"; }; builder = ./builder.sh; - inherit (stdenv) glibc; + inherit glibc; patches = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f0c282e3dca..c1ea1b2856b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -94,10 +94,9 @@ rec { + " --disable-shared"; # brrr... NIX_GCC = import ../build-support/gcc-wrapper { - inherit stdenv binutils; - gcc = gcc.gcc; + inherit stdenv; glibc = dietlibc; - nativeTools = false; + inherit (gcc) gcc binutils name nativeTools nativePrefix; nativeGlibc = false; }; }); @@ -2034,7 +2033,7 @@ rec { #}; dietlibc = import ../os-specific/linux/dietlibc { - inherit fetchurl stdenv; + inherit fetchurl stdenv glibc; }; #dietlibcArm = import ../os-specific/linux/dietlibc-cross {