diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/scrypt/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/scrypt/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/scrypt/default.nix b/nixpkgs/pkgs/tools/security/scrypt/default.nix new file mode 100644 index 000000000000..352a81b2727a --- /dev/null +++ b/nixpkgs/pkgs/tools/security/scrypt/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, openssl }: + +stdenv.mkDerivation rec { + name = "scrypt-${version}"; + version = "1.2.1"; + + src = fetchurl { + url = "https://www.tarsnap.com/scrypt/${name}.tgz"; + sha256 = "0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6"; + }; + + buildInputs = [ openssl ]; + + patchPhase = '' + for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do + substituteInPlace $f --replace "command -p " "" + done + ''; + + meta = with stdenv.lib; { + description = "Encryption utility"; + homepage = https://www.tarsnap.com/scrypt.html; + license = licenses.bsd2; + platforms = platforms.all; + maintainers = with maintainers; [ thoughtpolice ]; + }; +} |