nixpkgs/pkgs/tools/security/scrypt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, openssl
, getconf
, util-linux
}:
2013-09-03 01:49:08 +00:00
stdenv.mkDerivation rec {
pname = "scrypt";
2023-10-19 09:54:45 +00:00
version = "1.3.2";
2013-09-03 01:49:08 +00:00
src = fetchurl {
url = "https://www.tarsnap.com/scrypt/${pname}-${version}.tgz";
2023-10-19 09:54:45 +00:00
sha256 = "sha256-1jLBGTQgrG+uv5SC5l4z06VmTszWQ7CaUJ0h0cHym+I=";
2013-09-03 01:49:08 +00:00
};
outputs = [ "out" "lib" "dev" ];
configureFlags = [ "--enable-libscrypt-kdf" ];
2013-09-03 01:49:08 +00:00
buildInputs = [ openssl ];
nativeBuildInputs = [ getconf ];
patchPhase = ''
for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh configure ; do
2017-10-12 04:40:56 +00:00
substituteInPlace $f --replace "command -p " ""
done
patchShebangs tests/test_scrypt.sh
'';
doCheck = true;
checkTarget = "test";
nativeCheckInputs = lib.optionals stdenv.isLinux [ util-linux ];
meta = with lib; {
description = "Encryption utility";
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
};
}