zerotierone: 1.2.12 -> 1.4.0
This commit is contained in:
parent
20b993ef2c
commit
8c975f2f38
@ -1,12 +1,14 @@
|
|||||||
{ stdenv, fetchurl, openssl, lzo, zlib, iproute, which, ronn }:
|
{ stdenv, fetchFromGitHub, openssl, lzo, zlib, iproute, which, ronn }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2.12";
|
pname = "zerotierone";
|
||||||
name = "zerotierone-${version}";
|
version = "1.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz";
|
owner = "zerotier";
|
||||||
sha256 = "1m7ynrgzpg2sp37hcmjkx6w173icfhakzn1c1zrdzrxmmszrj9r1";
|
repo = "ZeroTierOne";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "14iwhlxmxsnvnm9rrp6rysiz461w0v5nsmnz5p91rfi351103a63";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -16,9 +18,6 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace ./osdep/ManagedRoute.cpp \
|
substituteInPlace ./osdep/ManagedRoute.cpp \
|
||||||
--replace '/sbin/ip' '${iproute}/bin/ip'
|
--replace '/sbin/ip' '${iproute}/bin/ip'
|
||||||
|
|
||||||
substituteInPlace ./osdep/LinuxEthernetTap.cpp \
|
|
||||||
--replace 'execlp("ip",' 'execlp("${iproute}/bin/ip",'
|
|
||||||
|
|
||||||
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' '${ronn}/bin/ronn' \
|
||||||
|
Loading…
Reference in New Issue
Block a user