Merge pull request #76916 from danielfullmer/zerotierone-cross
zerotierone: fix cross compilation
This commit is contained in:
commit
48f461d8c3
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, openssl, lzo, zlib, iproute, which, ronn }:
|
{ stdenv, buildPackages, fetchFromGitHub, openssl, lzo, zlib, iproute, ronn }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zerotierone";
|
pname = "zerotierone";
|
||||||
@ -20,11 +20,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patchShebangs ./doc/build.sh
|
patchShebangs ./doc/build.sh
|
||||||
substituteInPlace ./doc/build.sh \
|
substituteInPlace ./doc/build.sh \
|
||||||
--replace '/usr/bin/ronn' '${ronn}/bin/ronn' \
|
--replace '/usr/bin/ronn' '${buildPackages.ronn}/bin/ronn' \
|
||||||
--replace 'ronn -r' '${ronn}/bin/ronn -r'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ openssl lzo zlib iproute which ronn ];
|
|
||||||
|
nativeBuildInputs = [ ronn ];
|
||||||
|
buildInputs = [ openssl lzo zlib iproute ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dt "$out/bin/" zerotier-one
|
install -Dt "$out/bin/" zerotier-one
|
||||||
@ -43,7 +46,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Create flat virtual Ethernet networks of almost unlimited size";
|
description = "Create flat virtual Ethernet networks of almost unlimited size";
|
||||||
homepage = https://www.zerotier.com;
|
homepage = https://www.zerotier.com;
|
||||||
license = licenses.bsl11;
|
license = licenses.bsl11;
|
||||||
maintainers = with maintainers; [ sjmackenzie zimbatm ehmry obadz ];
|
maintainers = with maintainers; [ sjmackenzie zimbatm ehmry obadz danielfullmer ];
|
||||||
platforms = platforms.x86_64 ++ platforms.aarch64;
|
platforms = with platforms; x86_64 ++ aarch64 ++ arm;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user