2013-09-03 01:49:08 +00:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "scrypt-${version}";
|
2017-10-12 04:40:56 +00:00
|
|
|
version = "1.2.1";
|
2013-09-03 01:49:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-31 12:45:18 +00:00
|
|
|
url = "https://www.tarsnap.com/scrypt/${name}.tgz";
|
2017-10-12 04:40:56 +00:00
|
|
|
sha256 = "0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6";
|
2013-09-03 01:49:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2015-08-31 12:45:18 +00:00
|
|
|
patchPhase = ''
|
2017-10-12 04:40:56 +00:00
|
|
|
for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do
|
|
|
|
substituteInPlace $f --replace "command -p " ""
|
|
|
|
done
|
2015-08-31 12:45:18 +00:00
|
|
|
'';
|
|
|
|
|
2017-10-12 04:40:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Encryption utility";
|
2014-03-20 18:38:02 +00:00
|
|
|
homepage = https://www.tarsnap.com/scrypt.html;
|
2017-10-12 04:40:56 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2013-09-03 01:49:08 +00:00
|
|
|
};
|
|
|
|
}
|