1{ stdenv, fetchurl, openssl }:
2
3stdenv.mkDerivation rec {
4 name = "scrypt-${version}";
5 version = "1.2.0";
6
7 src = fetchurl {
8 url = "https://www.tarsnap.com/scrypt/${name}.tgz";
9 sha256 = "1m39hpfby0fdjam842773i5w7pa0qaj7f0r22jnchxsj824vqm0p";
10 };
11
12 buildInputs = [ openssl ];
13
14 patchPhase = ''
15 substituteInPlace Makefile.in \
16 --replace "command -p mv" "mv"
17 substituteInPlace autocrap/Makefile.am \
18 --replace "command -p mv" "mv"
19 '';
20
21 meta = {
22 description = "Encryption utility";
23 homepage = https://www.tarsnap.com/scrypt.html;
24 license = stdenv.lib.licenses.bsd2;
25 platforms = stdenv.lib.platforms.all;
26 maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
27 };
28}