nixpkgs/pkgs/tools/security/mkpasswd/default.nix
bbenoist b39debe886 mkpasswd: Update to 5.0.26
The previous version (5.0.26) has been removed from the debian ftp.
As the source URL is now down, our own hydra (not hydra.nixos.org) failed
to build the package.
This problem will occur again in the future since I only updated the URL
without relying on a "more stable" alternative (this merits a specific
discussion).
2013-09-20 10:43:50 +02:00

29 lines
654 B
Nix

{ stdenv, fetchurl
}:
stdenv.mkDerivation rec {
name = "mkpasswd-${version}";
version = "5.0.26";
src = fetchurl {
url = "http://ftp.debian.org/debian/pool/main/w/whois/whois_${version}.tar.xz";
sha256 = "729625ef81425f4771e06492bb4f3e9f24bff75b8176044ce8d2f605f7ad6af5";
};
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.
'';
};
}