summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-03-03 23:17:20 -0600
committerWill Dietz <w@wdtz.org>2019-03-03 23:52:00 -0600
commit8867dfd0161a084657275946e67fb80586d4ea01 (patch)
treee9976a7e36ca5735adc6289e524869e3d66f3fa0 /pkgs/development/libraries
parenta3eccfd5b0a77f1ea040bb125d28743475c2c595 (diff)
downloadnixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar.gz
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar.bz2
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar.lz
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar.xz
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.tar.zst
nixpkgs-8867dfd0161a084657275946e67fb80586d4ea01.zip
cracklib: build default dictionary, run test
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/cracklib/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cracklib/default.nix b/pkgs/development/libraries/cracklib/default.nix
index a2670bff6b7..a761582f1c2 100644
--- a/pkgs/development/libraries/cracklib/default.nix
+++ b/pkgs/development/libraries/cracklib/default.nix
@@ -1,5 +1,6 @@
 { 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 {
   pname = "cracklib";
   version = "2.9.7";
@@ -11,6 +12,17 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ zlib gettext ];
 
+  postPatch = ''
+    chmod +x util/cracklib-format
+    patchShebangs util
+  '';
+
+  postInstall = ''
+    make dict
+  '';
+  doInstallCheck = true;
+  installCheckTarget = "test";
+
   meta = with stdenv.lib; {
     homepage    = https://github.com/cracklib/cracklib;
     description = "A library for checking the strength of passwords";