lol
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 \
16 --replace "command -p mv" "mv"
17 substituteInPlace Makefile.in \
18 --replace "command -p mv" "mv"
19 substituteInPlace autocrap/Makefile.am \
20 --replace "command -p mv" "mv"
21 '';
22
23 meta = {
24 description = "Encryption utility";
25 homepage = https://www.tarsnap.com/scrypt.html;
26 license = stdenv.lib.licenses.bsd2;
27 platforms = stdenv.lib.platforms.all;
28 maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
29 };
30}