2017-06-20 03:52:57 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, cracklib, python }:
|
2014-04-04 14:14:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-03 02:11:44 +00:00
|
|
|
name = "libpwquality-${version}";
|
2017-06-20 03:52:57 +00:00
|
|
|
version = "1.4.0";
|
2014-04-04 14:14:38 +00:00
|
|
|
|
2017-06-20 03:52:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpwquality";
|
|
|
|
repo = "libpwquality";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "0k564hj2q13z5ag8cj6rnkzm1na7001k4chz4f736p6aqvspv0bd";
|
2014-04-04 14:14:38 +00:00
|
|
|
};
|
|
|
|
|
2017-06-20 03:52:57 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook perl ];
|
2014-04-04 14:14:38 +00:00
|
|
|
buildInputs = [ cracklib python ];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2017-06-20 03:52:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Password quality checking and random password generation library";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/libpwquality/libpwquality;
|
2017-06-20 03:52:57 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2014-04-04 14:14:38 +00:00
|
|
|
}
|