Merge pull request #33105 from etu/testssl-fixups
testssl: refactor and improve expression
This commit is contained in:
commit
4fe3297686
@ -1,7 +1,11 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgs }:
|
{ stdenv, fetchFromGitHub, pkgs }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
version = "2.9.5-1";
|
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}";
|
name = "testssl.sh-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -17,8 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./testssl.patch ];
|
patches = [ ./testssl.patch ];
|
||||||
|
|
||||||
pwdBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ coreutils ])}/pwd";
|
|
||||||
opensslBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ openssl ])}/openssl";
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e "s|/bin/pwd|${pwdBinPath}|g" \
|
sed -i -e "s|/bin/pwd|${pwdBinPath}|g" \
|
||||||
-e "s|TESTSSL_INSTALL_DIR:-\"\"|TESTSSL_INSTALL_DIR:-\"$out\"|g" \
|
-e "s|TESTSSL_INSTALL_DIR:-\"\"|TESTSSL_INSTALL_DIR:-\"$out\"|g" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user