summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/testssl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/testssl/default.nix')
-rw-r--r--pkgs/applications/networking/testssl/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/networking/testssl/default.nix b/pkgs/applications/networking/testssl/default.nix
index 24ffe61b5abf..97c05dfafdbe 100644
--- a/pkgs/applications/networking/testssl/default.nix
+++ b/pkgs/applications/networking/testssl/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, pkgs }:
let
- version = "2.9.5-3";
+ version = "2.9.5-4";
pwdBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ coreutils ])}/pwd";
opensslBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ openssl ])}/openssl";
@@ -12,16 +12,16 @@ in stdenv.mkDerivation rec {
owner = "drwetter";
repo = "testssl.sh";
rev = "v${version}";
- sha256 = "07vlmf3gn2xa4wam2sql6c1s1hvj5adzd6l1fl12lq066v0k7r7n";
+ sha256 = "0pfp7r4jhvkh06vawqlvq7vp4imwp6dpq6jx8m0k3j85ywwp45pd";
};
patches = [ ./testssl.patch ];
postPatch = ''
- sed -i -e "s|/bin/pwd|${pwdBinPath}|g" \
- -e "s|TESTSSL_INSTALL_DIR:-\"\"|TESTSSL_INSTALL_DIR:-\"$out\"|g" \
- -e "s|OPENSSL:-\"\"|OPENSSL:-\"${opensslBinPath}\"|g" \
- testssl.sh
+ substituteInPlace testssl.sh \
+ --replace /bin/pwd ${pwdBinPath} \
+ --replace TESTSSL_INSTALL_DIR:-\"\" TESTSSL_INSTALL_DIR:-\"$out\" \
+ --replace @@openssl-path@@ ${opensslBinPath}
'';
installPhase = ''