summary refs log tree commit diff
path: root/pkgs/tools/security/mkpasswd
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2013-02-27 12:14:09 +0100
committerRickard Nilsson <rickynils@gmail.com>2013-02-27 12:14:09 +0100
commitad76386ff7d4664155ba2f72c57395060f6c0e7c (patch)
treeb02eba2998cacf4505fb17203a87a355c6794909 /pkgs/tools/security/mkpasswd
parent80dc8df25d21168aa09298d8d8032e26e1f4bc6b (diff)
downloadnixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar.gz
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar.bz2
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar.lz
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar.xz
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.tar.zst
nixpkgs-ad76386ff7d4664155ba2f72c57395060f6c0e7c.zip
Add mkpasswd, an overfeatured front end to crypt
Diffstat (limited to 'pkgs/tools/security/mkpasswd')
-rw-r--r--pkgs/tools/security/mkpasswd/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/mkpasswd/default.nix b/pkgs/tools/security/mkpasswd/default.nix
new file mode 100644
index 00000000000..a1982cc4e66
--- /dev/null
+++ b/pkgs/tools/security/mkpasswd/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl
+}:
+  
+stdenv.mkDerivation rec {
+  name = "mkpasswd-${version}";
+
+  version = "5.0.20";
+
+  src = fetchurl {
+    url = "http://ftp.debian.org/debian/pool/main/w/whois/whois_${version}.tar.xz";
+    sha256 = "1kwf5pwc7w8dw40nrd4m4637mz7pbhc4c1v78j56nqj38sak50w1";
+  };
+
+  preConfigure = ''
+    substituteInPlace Makefile --replace "prefix = /usr" "prefix = $out"
+  '';
+
+  buildPhase = "make mkpasswd";
+
+  installPhase = "make install-mkpasswd";
+
+  meta = {
+    homepage = http://ftp.debian.org/debian/pool/main/w/whois/;
+    description = ''
+      Overfeatured front end to crypt, from the Debian whois package.
+    '';
+  };
+}