3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/scrypt/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
726 B
Nix

{ stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
pname = "scrypt";
version = "1.2.1";
src = fetchurl {
url = "https://www.tarsnap.com/scrypt/${pname}-${version}.tgz";
sha256 = "0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6";
};
buildInputs = [ openssl ];
patchPhase = ''
for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do
substituteInPlace $f --replace "command -p " ""
done
'';
meta = with stdenv.lib; {
description = "Encryption utility";
homepage = https://www.tarsnap.com/scrypt.html;
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
};
}