3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #60258 from thefloweringash/acme.sh-darwin

acme.sh: use iproute on linux and netstat elsewhere
This commit is contained in:
Matthew Bauer 2019-04-27 20:13:30 -04:00 committed by GitHub
commit 072287bc09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, openssl, socat, iproute }:
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, openssl, socat, iproute, unixtools }:
stdenv.mkDerivation rec {
name = "acme.sh-${version}";
version = "2.8.0";
@ -16,7 +16,14 @@ stdenv.mkDerivation rec {
mkdir -p $out $out/bin $out/libexec
cp -R $src/* $_
makeWrapper $out/libexec/acme.sh $out/bin/acme.sh \
--prefix PATH : "${lib.makeBinPath [ socat openssl curl iproute ]}"
--prefix PATH : "${
lib.makeBinPath [
socat
openssl
curl
(if stdenv.isLinux then iproute else unixtools.netstat)
]
}"
'';
meta = with stdenv.lib; {