mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
29 lines
731 B
Nix
29 lines
731 B
Nix
{ stdenv, fetchurl, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "scrypt-${version}";
|
|
version = "1.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.tarsnap.com/scrypt/${name}.tgz";
|
|
sha256 = "1m39hpfby0fdjam842773i5w7pa0qaj7f0r22jnchxsj824vqm0p";
|
|
};
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile.in \
|
|
--replace "command -p mv" "mv"
|
|
substituteInPlace autocrap/Makefile.am \
|
|
--replace "command -p mv" "mv"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Encryption utility";
|
|
homepage = https://www.tarsnap.com/scrypt.html;
|
|
license = stdenv.lib.licenses.bsd2;
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|