at 18.03-beta 27 lines 724 B view raw
1{ stdenv, fetchurl, openssl }: 2 3stdenv.mkDerivation rec { 4 name = "scrypt-${version}"; 5 version = "1.2.1"; 6 7 src = fetchurl { 8 url = "https://www.tarsnap.com/scrypt/${name}.tgz"; 9 sha256 = "0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6"; 10 }; 11 12 buildInputs = [ openssl ]; 13 14 patchPhase = '' 15 for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do 16 substituteInPlace $f --replace "command -p " "" 17 done 18 ''; 19 20 meta = with stdenv.lib; { 21 description = "Encryption utility"; 22 homepage = https://www.tarsnap.com/scrypt.html; 23 license = licenses.bsd2; 24 platforms = platforms.all; 25 maintainers = with maintainers; [ thoughtpolice ]; 26 }; 27}