libxcrypt: add -legacy variant
This commit is contained in:
parent
3fbc1838eb
commit
9b766dd41b
|
@ -1,4 +1,8 @@
|
||||||
{ lib, stdenv, fetchurl, perl, nixosTests }:
|
{ lib, stdenv, fetchurl, perl
|
||||||
|
# Update the enabled crypt scheme ids in passthru when the enabled hashes change
|
||||||
|
, enableHashes ? "strong"
|
||||||
|
, nixosTests
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libxcrypt";
|
pname = "libxcrypt";
|
||||||
|
@ -15,8 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
# Update the enabled crypt scheme ids in passthru when the enabled hashes change
|
"--enable-hashes=${enableHashes}"
|
||||||
"--enable-hashes=strong"
|
|
||||||
"--enable-obsolete-api=glibc"
|
"--enable-obsolete-api=glibc"
|
||||||
"--disable-failure-tokens"
|
"--disable-failure-tokens"
|
||||||
] ++ lib.optionals (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.libc == "bionic") [
|
] ++ lib.optionals (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.libc == "bionic") [
|
||||||
|
|
|
@ -22242,6 +22242,7 @@ with pkgs;
|
||||||
fetchurl = stdenv.fetchurlBoot;
|
fetchurl = stdenv.fetchurlBoot;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
libxcrypt-legacy = libxcrypt.override { enableHashes = "all"; };
|
||||||
|
|
||||||
libxdg_basedir = callPackage ../development/libraries/libxdg-basedir { };
|
libxdg_basedir = callPackage ../development/libraries/libxdg-basedir { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue