2017-06-20 04:52:57 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, cracklib, python }:
|
2014-04-04 15:14:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libpwquality";
|
2019-09-27 17:18:57 +01:00
|
|
|
version = "1.4.1";
|
2014-04-04 15:14:38 +01:00
|
|
|
|
2017-06-20 04:52:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpwquality";
|
|
|
|
repo = "libpwquality";
|
2019-08-15 13:41:18 +01:00
|
|
|
rev = "${pname}-${version}";
|
2019-09-27 17:18:57 +01:00
|
|
|
sha256 = "150gk1d0gq9cig3ylyns7fgihgm3qb1basncahgyh1kzxplrdqm7";
|
2014-04-04 15:14:38 +01:00
|
|
|
};
|
|
|
|
|
2017-06-20 04:52:57 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook perl ];
|
2014-04-04 15:14:38 +01:00
|
|
|
buildInputs = [ cracklib python ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2017-06-20 04:52:57 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Password quality checking and random password generation library";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/libpwquality/libpwquality;
|
2017-06-20 04:52:57 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2014-04-04 15:14:38 +01:00
|
|
|
}
|