2022-10-09 18:49:37 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, nixosTests }:
|
2021-02-28 12:44:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libxcrypt";
|
2022-03-21 11:38:19 +00:00
|
|
|
version = "4.4.28";
|
2021-02-28 12:44:53 +00:00
|
|
|
|
2022-07-17 01:01:01 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc=";
|
2021-02-28 12:44:53 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 18:45:30 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
|
|
|
|
2022-07-17 01:01:01 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-hashes=all"
|
|
|
|
"--enable-obsolete-api=glibc"
|
|
|
|
"--disable-failure-tokens"
|
2022-09-26 20:44:58 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
|
|
|
"--disable-werror"
|
2022-10-01 14:24:38 +00:00
|
|
|
];
|
|
|
|
|
2022-07-17 01:01:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
perl
|
2022-05-01 15:32:16 +00:00
|
|
|
];
|
|
|
|
|
2022-07-17 01:01:01 +00:00
|
|
|
enableParallelBuilding = true;
|
2021-02-28 12:44:53 +00:00
|
|
|
|
2022-09-26 20:44:58 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isMusl;
|
2021-02-28 12:44:53 +00:00
|
|
|
|
2022-10-09 18:49:37 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) login shadow;
|
|
|
|
};
|
|
|
|
|
2021-02-28 12:44:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others";
|
|
|
|
homepage = "https://github.com/besser82/libxcrypt/";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ dottedmag ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|