acme.sh: use iproute on linux and netstat elsewhere
Fixes Darwin build.
This commit is contained in:
parent
d16a5a5916
commit
a219e53504
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, openssl, socat, iproute }:
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, openssl, socat, iproute, unixtools }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "acme.sh-${version}";
|
name = "acme.sh-${version}";
|
||||||
version = "2.8.0";
|
version = "2.8.0";
|
||||||
|
@ -16,7 +16,14 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out $out/bin $out/libexec
|
mkdir -p $out $out/bin $out/libexec
|
||||||
cp -R $src/* $_
|
cp -R $src/* $_
|
||||||
makeWrapper $out/libexec/acme.sh $out/bin/acme.sh \
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue