summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc/common.nix
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2022-12-10 21:12:43 +0100
committerGitHub <noreply@github.com>2022-12-10 21:12:43 +0100
commit16f5747575f3da6c7f4e4ecabc54063fef31914b (patch)
tree388ee9e72e08695e4fb862f0efb1bad736aeac76 /pkgs/development/libraries/glibc/common.nix
parentd17577b991dd855e6e3ad8f31f6c015bdcbacccf (diff)
parent11c3127e38dafdf95ca71a85b1591a29b67e0c09 (diff)
downloadnixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar.gz
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar.bz2
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar.lz
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar.xz
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.tar.zst
nixpkgs-16f5747575f3da6c7f4e4ecabc54063fef31914b.zip
Merge pull request #175649 from Artturin/opt-in-structured-attrs
stdenv: support opt-in __structuredAttrs
Diffstat (limited to 'pkgs/development/libraries/glibc/common.nix')
-rw-r--r--pkgs/development/libraries/glibc/common.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix
index 61c0c92d528..889ca7bf48f 100644
--- a/pkgs/development/libraries/glibc/common.nix
+++ b/pkgs/development/libraries/glibc/common.nix
@@ -54,9 +54,6 @@ assert withGd -> gd != null && libpng != null;
 
 stdenv.mkDerivation ({
   version = version + patchSuffix;
-  linuxHeaders = if withLinuxHeaders then linuxHeaders else null;
-
-  inherit (stdenv) is64bit;
 
   enableParallelBuilding = true;
 
@@ -175,10 +172,14 @@ stdenv.mkDerivation ({
   nativeBuildInputs = [ bison python3Minimal ] ++ extraNativeBuildInputs;
   buildInputs = [ linuxHeaders ] ++ lib.optionals withGd [ gd libpng ] ++ extraBuildInputs;
 
-  # Needed to install share/zoneinfo/zone.tab.  Set to impure /bin/sh to
-  # prevent a retained dependency on the bootstrap tools in the stdenv-linux
-  # bootstrap.
-  BASH_SHELL = "/bin/sh";
+  env = {
+    linuxHeaders = if withLinuxHeaders then linuxHeaders else "";
+    inherit (stdenv) is64bit;
+    # Needed to install share/zoneinfo/zone.tab.  Set to impure /bin/sh to
+    # prevent a retained dependency on the bootstrap tools in the stdenv-linux
+    # bootstrap.
+    BASH_SHELL = "/bin/sh";
+  };
 
   # Used by libgcc, elf-header, and others to determine ABI
   passthru = { inherit version; minorRelease = version; };