mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
zerotierone: fix cross compilation
This commit is contained in:
parent
b0bbacb521
commit
44d0aed677
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, openssl, lzo, zlib, iproute, which, ronn }:
|
||||
{ stdenv, buildPackages, fetchFromGitHub, openssl, lzo, zlib, iproute, ronn }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zerotierone";
|
||||
@ -20,11 +20,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patchShebangs ./doc/build.sh
|
||||
substituteInPlace ./doc/build.sh \
|
||||
--replace '/usr/bin/ronn' '${ronn}/bin/ronn' \
|
||||
--replace 'ronn -r' '${ronn}/bin/ronn -r'
|
||||
--replace '/usr/bin/ronn' '${buildPackages.ronn}/bin/ronn' \
|
||||
'';
|
||||
|
||||
buildInputs = [ openssl lzo zlib iproute which ronn ];
|
||||
|
||||
nativeBuildInputs = [ ronn ];
|
||||
buildInputs = [ openssl lzo zlib iproute ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
install -Dt "$out/bin/" zerotier-one
|
||||
|
Loading…
Reference in New Issue
Block a user