summary refs log tree commit diff
path: root/pkgs/tools/security/mkpasswd
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-05-16 22:07:29 -0400
committerAustin Seipp <aseipp@pobox.com>2014-05-20 23:07:15 -0500
commite5eed8f664891e7337c1c70a654930617da4247b (patch)
tree4ce93cc522e0cbd92a526aadc6ceb4ec577d30da /pkgs/tools/security/mkpasswd
parent1b0b0d3bb2c28a08481a35decc943873604e961a (diff)
downloadnixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar.gz
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar.bz2
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar.lz
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar.xz
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.tar.zst
nixpkgs-e5eed8f664891e7337c1c70a654930617da4247b.zip
fix mkpasswd: use the git repository
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/tools/security/mkpasswd')
-rw-r--r--pkgs/tools/security/mkpasswd/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/tools/security/mkpasswd/default.nix b/pkgs/tools/security/mkpasswd/default.nix
index 624fcdbe6c6..1df8c1a62d2 100644
--- a/pkgs/tools/security/mkpasswd/default.nix
+++ b/pkgs/tools/security/mkpasswd/default.nix
@@ -1,14 +1,15 @@
-{ stdenv, fetchurl
-}:
+{ stdenv, fetchFromGitHub }:
   
 stdenv.mkDerivation rec {
   name = "mkpasswd-${version}";
 
   version = "5.1.1";
 
-  src = fetchurl {
-    url = "http://ftp.debian.org/debian/pool/main/w/whois/whois_${version}.tar.xz";
-    sha256 = "0i06a9mb9qcq272782mg6dffv3k7bqkw4cdr31yrc0s6jqylryv9";
+  src = fetchFromGitHub {
+    owner = "rfc1036";
+    repo = "whois";
+    rev = "v${version}";
+    sha256 = "026x8byx8pcpkdxca64368p0nlspk4phw18jg4p04di6cg6nc1m5";
   };
 
   preConfigure = ''
@@ -19,10 +20,12 @@ stdenv.mkDerivation rec {
 
   installPhase = "make install-mkpasswd";
 
-  meta = {
-    homepage = http://ftp.debian.org/debian/pool/main/w/whois/;
+  meta = with stdenv.lib; {
+    homepage = http://packages.qa.debian.org/w/whois.html;
     description = ''
-      Overfeatured front end to crypt, from the Debian whois package.
+      Overfeatured front end to crypt, from the Debian whois package
     '';
+    license     = licenses.gpl2;
+    maintainers = with maintainers; [ cstrahan ];
   };
 }