mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
36 lines
903 B
Nix
36 lines
903 B
Nix
{ lib, stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libxcrypt";
|
|
version = "4.4.28";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
|
|
sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc=";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--enable-hashes=all"
|
|
"--enable-obsolete-api=glibc"
|
|
"--disable-failure-tokens"
|
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
|
"--disable-werror"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = !stdenv.hostPlatform.isMusl;
|
|
|
|
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;
|
|
};
|
|
}
|