nixpkgs-suyu/pkgs/tools/security/scrypt/default.nix

28 lines
728 B
Nix
Raw Normal View History

2013-09-03 03:49:08 +02:00
{ stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
pname = "scrypt";
version = "1.3.0";
2013-09-03 03:49:08 +02:00
src = fetchurl {
url = "https://www.tarsnap.com/scrypt/${pname}-${version}.tgz";
sha256 = "0j17yfrpi2bk5cawb4a4mzpv1vadqxh956hx0pa1gqfisknk8c16";
2013-09-03 03:49:08 +02:00
};
buildInputs = [ openssl ];
patchPhase = ''
2017-10-12 06:40:56 +02:00
for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do
substituteInPlace $f --replace "command -p " ""
done
'';
2017-10-12 06:40:56 +02:00
meta = with stdenv.lib; {
description = "Encryption utility";
homepage = "https://www.tarsnap.com/scrypt.html";
2017-10-12 06:40:56 +02:00
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
2013-09-03 03:49:08 +02:00
};
}