cracklib: build default dictionary, run test
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, zlib, gettext }:
|
{ stdenv, fetchurl, zlib, gettext }:
|
||||||
|
|
||||||
|
# TODO: wordlist? https://github.com/cracklib/cracklib/releases/download/v2.9.7/cracklib-words-2.9.7.gz is a start!
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cracklib";
|
pname = "cracklib";
|
||||||
version = "2.9.7";
|
version = "2.9.7";
|
||||||
@@ -11,6 +12,17 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ zlib gettext ];
|
buildInputs = [ zlib gettext ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
chmod +x util/cracklib-format
|
||||||
|
patchShebangs util
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
make dict
|
||||||
|
'';
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckTarget = "test";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/cracklib/cracklib;
|
homepage = https://github.com/cracklib/cracklib;
|
||||||
description = "A library for checking the strength of passwords";
|
description = "A library for checking the strength of passwords";
|
||||||
|
|||||||
Reference in New Issue
Block a user