diff options
author | Elis Hirwing <elis@hirwing.se> | 2017-12-27 13:23:59 +0100 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2018-01-01 17:20:25 +0100 |
commit | f3ec623b7048da2252572f19c72233b1312d941a (patch) | |
tree | 4357acb6baa2e747f9c86897cf85f8f02788b81e /pkgs/applications/networking/testssl | |
parent | 5c66d653a267ecbddcc0e7d0025564006105dc51 (diff) | |
download | nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar.gz nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar.bz2 nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar.lz nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar.xz nixlib-f3ec623b7048da2252572f19c72233b1312d941a.tar.zst nixlib-f3ec623b7048da2252572f19c72233b1312d941a.zip |
testssl: refactor and improve expression
Diffstat (limited to 'pkgs/applications/networking/testssl')
-rw-r--r-- | pkgs/applications/networking/testssl/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/networking/testssl/default.nix b/pkgs/applications/networking/testssl/default.nix index dc7c961856d6..50ebee4a0ce5 100644 --- a/pkgs/applications/networking/testssl/default.nix +++ b/pkgs/applications/networking/testssl/default.nix @@ -1,7 +1,11 @@ { stdenv, fetchFromGitHub, pkgs }: -stdenv.mkDerivation rec { +let version = "2.9.5-1"; + pwdBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ coreutils ])}/pwd"; + opensslBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ openssl ])}/openssl"; + +in stdenv.mkDerivation rec { name = "testssl.sh-${version}"; src = fetchFromGitHub { @@ -17,8 +21,6 @@ stdenv.mkDerivation rec { patches = [ ./testssl.patch ]; - pwdBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ coreutils ])}/pwd"; - opensslBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ openssl ])}/openssl"; postPatch = '' sed -i -e "s|/bin/pwd|${pwdBinPath}|g" \ -e "s|TESTSSL_INSTALL_DIR:-\"\"|TESTSSL_INSTALL_DIR:-\"$out\"|g" \ |