2013-09-03 03:49:08 +02:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "scrypt-${version}";
|
2015-08-31 14:45:18 +02:00
|
|
|
version = "1.2.0";
|
2013-09-03 03:49:08 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-31 14:45:18 +02:00
|
|
|
url = "https://www.tarsnap.com/scrypt/${name}.tgz";
|
|
|
|
sha256 = "1m39hpfby0fdjam842773i5w7pa0qaj7f0r22jnchxsj824vqm0p";
|
2013-09-03 03:49:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2015-08-31 14:45:18 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "command -p mv" "mv"
|
|
|
|
substituteInPlace Makefile.in \
|
|
|
|
--replace "command -p mv" "mv"
|
|
|
|
substituteInPlace autocrap/Makefile.am \
|
|
|
|
--replace "command -p mv" "mv"
|
|
|
|
'';
|
|
|
|
|
2013-09-03 03:49:08 +02:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Encryption utility";
|
2014-03-20 19:38:02 +01:00
|
|
|
homepage = https://www.tarsnap.com/scrypt.html;
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2013-09-03 03:49:08 +02:00
|
|
|
};
|
|
|
|
}
|