diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-09-15 19:48:10 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-09-15 19:48:10 +0200 |
commit | c66aaf1995cacafc123466496db6b8a74a934182 (patch) | |
tree | f160184fb3a0d4f5f88d3bcfa6c5fe45369257f5 /pkgs/tools/security/scrypt | |
parent | feda1d67d21a5b3976a8593453703b121f7040b9 (diff) | |
download | nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar.gz nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar.bz2 nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar.lz nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar.xz nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.tar.zst nixpkgs-c66aaf1995cacafc123466496db6b8a74a934182.zip |
scrypt: 1.3.0 → 1.3.1, build library, enable tests
* update scrypt * enable running of tests * build development library libscrypt-kdf, install to lib output, headers to dev * default output remains untouched: contains binary plus man pages
Diffstat (limited to 'pkgs/tools/security/scrypt')
-rw-r--r-- | pkgs/tools/security/scrypt/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/tools/security/scrypt/default.nix b/pkgs/tools/security/scrypt/default.nix index 018bc44b144..d834e4acd9c 100644 --- a/pkgs/tools/security/scrypt/default.nix +++ b/pkgs/tools/security/scrypt/default.nix @@ -1,22 +1,32 @@ -{ stdenv, fetchurl, openssl }: +{ stdenv, fetchurl, openssl, utillinux }: stdenv.mkDerivation rec { pname = "scrypt"; - version = "1.3.0"; + version = "1.3.1"; src = fetchurl { url = "https://www.tarsnap.com/scrypt/${pname}-${version}.tgz"; - sha256 = "0j17yfrpi2bk5cawb4a4mzpv1vadqxh956hx0pa1gqfisknk8c16"; + sha256 = "1hnl0r6pmyxiy4dmafmqk1db7wpc0x9rqpzqcwr9d2cmghcj6byz"; }; + outputs = [ "out" "lib" "dev" ]; + + configureFlags = [ "--enable-libscrypt-kdf" ]; + buildInputs = [ openssl ]; patchPhase = '' - for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh ; do + for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh configure ; do substituteInPlace $f --replace "command -p " "" done + + patchShebangs tests/test_scrypt.sh ''; + doCheck = true; + checkTarget = "test"; + checkInputs = [ utillinux ]; + meta = with stdenv.lib; { description = "Encryption utility"; homepage = "https://www.tarsnap.com/scrypt.html"; |