1 { lib, stdenv, fetchurl, perl, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
9 sha256 = "sha256-s2Z/C6hdqtavJGukCQ++UxY62TyLaioSV9IqeLt87ro=";
19 "--enable-obsolete-api=glibc"
20 "--disable-failure-tokens"
21 ] ++ lib.optionals stdenv.hostPlatform.isMusl [
29 enableParallelBuilding = true;
34 inherit (nixosTests) login shadow;
38 description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others";
39 homepage = "https://github.com/besser82/libxcrypt/";
40 platforms = platforms.all;
41 maintainers = with maintainers; [ dottedmag hexa ];
42 license = licenses.lgpl21Plus;