summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc/common.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-07-16 22:42:23 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-10-09 18:07:53 +0200
commitff30c899d8bd92d1a1c9f4d4e81455b04cb0868e (patch)
tree1e4abeefae6d86924a9c31c038939fc42abfce72 /pkgs/development/libraries/glibc/common.nix
parent3e675d06f5f236e84a90ccd4d993d1784d043b4f (diff)
downloadnixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar.gz
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar.bz2
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar.lz
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar.xz
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.tar.zst
nixpkgs-ff30c899d8bd92d1a1c9f4d4e81455b04cb0868e.zip
glibc: make crypt support optional
The libcrypt library is going to be replaced with libxcrypt in packages
that require it.
Diffstat (limited to 'pkgs/development/libraries/glibc/common.nix')
-rw-r--r--pkgs/development/libraries/glibc/common.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix
index 6ed0a4d4da0..83cde077494 100644
--- a/pkgs/development/libraries/glibc/common.nix
+++ b/pkgs/development/libraries/glibc/common.nix
@@ -36,6 +36,7 @@
 , withLinuxHeaders ? false
 , profilingLibraries ? false
 , withGd ? false
+, withLibcrypt ? false
 , meta
 , extraBuildInputs ? []
 , extraNativeBuildInputs ? []
@@ -183,7 +184,9 @@ stdenv.mkDerivation ({
       # To avoid linking with -lgcc_s (dynamic link)
       # so the glibc does not depend on its compiler store path
       "libc_cv_as_needed=no"
-    ] ++ lib.optional withGd "--with-gd";
+    ]
+    ++ lib.optional withGd "--with-gd"
+    ++ lib.optional (!withLibcrypt) "--disable-crypt";
 
   makeFlags = [
     "OBJCOPY=${stdenv.cc.targetPrefix}objcopy"