nixpkgs/pkgs/development/libraries/libxcrypt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1021 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, perl, nixosTests }:
stdenv.mkDerivation rec {
pname = "libxcrypt";
2022-03-21 11:38:19 +00:00
version = "4.4.28";
src = fetchurl {
url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc=";
};
outputs = [
"out"
"man"
];
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
];
nativeBuildInputs = [
perl
];
enableParallelBuilding = true;
2022-09-26 20:44:58 +00:00
doCheck = !stdenv.hostPlatform.isMusl;
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 ];
license = licenses.lgpl21Plus;
};
}