3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/scrypt/default.nix

40 lines
994 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, openssl, util-linux, getconf }:
2013-09-03 02:49:08 +01:00
stdenv.mkDerivation rec {
pname = "scrypt";
version = "1.3.1";
2013-09-03 02:49:08 +01:00
src = fetchurl {
url = "https://www.tarsnap.com/scrypt/${pname}-${version}.tgz";
sha256 = "1hnl0r6pmyxiy4dmafmqk1db7wpc0x9rqpzqcwr9d2cmghcj6byz";
2013-09-03 02:49:08 +01:00
};
outputs = [ "out" "lib" "dev" ];
configureFlags = [ "--enable-libscrypt-kdf" ];
2013-09-03 02:49:08 +01:00
buildInputs = [ openssl ];
nativeBuildInputs = [ getconf ];
patchPhase = ''
for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh configure ; do
2017-10-12 05:40:56 +01:00
substituteInPlace $f --replace "command -p " ""
done
patchShebangs tests/test_scrypt.sh
'';
doCheck = true;
checkTarget = "test";
2020-11-24 15:29:28 +00:00
checkInputs = [ util-linux ];
meta = with lib; {
description = "Encryption utility";
homepage = "https://www.tarsnap.com/scrypt.html";
2017-10-12 05:40:56 +01:00
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
2013-09-03 02:49:08 +01:00
};
}