2013-02-27 12:14:09 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mkpasswd-${version}";
|
|
|
|
|
2013-09-12 22:58:27 +02:00
|
|
|
version = "5.0.26";
|
2013-02-27 12:14:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.debian.org/debian/pool/main/w/whois/whois_${version}.tar.xz";
|
2013-09-12 22:58:27 +02:00
|
|
|
sha256 = "729625ef81425f4771e06492bb4f3e9f24bff75b8176044ce8d2f605f7ad6af5";
|
2013-02-27 12:14:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|