2014-05-17 04:07:29 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2013-02-27 12:14:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mkpasswd-${version}";
|
|
|
|
|
2014-01-30 12:28:57 +01:00
|
|
|
version = "5.1.1";
|
2013-02-27 12:14:09 +01:00
|
|
|
|
2014-05-17 04:07:29 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfc1036";
|
|
|
|
repo = "whois";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "026x8byx8pcpkdxca64368p0nlspk4phw18jg4p04di6cg6nc1m5";
|
2013-02-27 12:14:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile --replace "prefix = /usr" "prefix = $out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "make mkpasswd";
|
|
|
|
|
|
|
|
installPhase = "make install-mkpasswd";
|
|
|
|
|
2014-05-17 04:07:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://packages.qa.debian.org/w/whois.html;
|
2013-02-27 12:14:09 +01:00
|
|
|
description = ''
|
2014-05-17 04:07:29 +02:00
|
|
|
Overfeatured front end to crypt, from the Debian whois package
|
2013-02-27 12:14:09 +01:00
|
|
|
'';
|
2014-05-17 04:07:29 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2013-02-27 12:14:09 +01:00
|
|
|
};
|
|
|
|
}
|