nixpkgs/pkgs/tools/security/mkpasswd/default.nix

29 lines
642 B
Nix
Raw Normal View History

{ stdenv, fetchurl
}:
stdenv.mkDerivation rec {
name = "mkpasswd-${version}";
2013-06-25 12:20:00 +02:00
version = "5.0.25";
src = fetchurl {
url = "http://ftp.debian.org/debian/pool/main/w/whois/whois_${version}.tar.xz";
2013-06-25 12:20:00 +02:00
sha256 = "0qb859vwd6g93cb5zbf19gpw2g2b9s1qlq4nqia1a966pjkvw1qj";
};
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.
'';
};
}