2021-02-28 13:44:53 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libxcrypt";
|
2022-03-21 12:38:19 +01:00
|
|
|
version = "4.4.28";
|
2021-02-28 13:44:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "besser82";
|
|
|
|
repo = "libxcrypt";
|
|
|
|
rev = "v${version}";
|
2022-03-21 12:38:19 +01:00
|
|
|
sha256 = "sha256-Ohf+RCOXnoCxAFnXXV9e2TCqpfZziQl+FGJTGDSQTF0=";
|
2021-02-28 13:44:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2022-05-01 17:32:16 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-werror"
|
|
|
|
];
|
|
|
|
|
2021-02-28 13:44:53 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|