01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
44 lines
1,003 B
Nix
44 lines
1,003 B
Nix
{ lib, stdenv, fetchurl, perl, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libxcrypt";
|
|
version = "4.4.30";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
|
|
sha256 = "sha256-s2Z/C6hdqtavJGukCQ++UxY62TyLaioSV9IqeLt87ro=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-hashes=all"
|
|
"--enable-obsolete-api=glibc"
|
|
"--disable-failure-tokens"
|
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
|
"--disable-werror"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) login shadow;
|
|
};
|
|
|
|
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 hexa ];
|
|
license = licenses.lgpl21Plus;
|
|
};
|
|
}
|