zerotierone: fix cross compilation

This commit is contained in:
Daniel Fullmer 2020-01-03 20:10:37 -05:00
parent b0bbacb521
commit 44d0aed677

View file

@ -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