3
0
Fork 0
forked from mirrors/nixpkgs

zerotierone: 1.0.2 -> 1.0.4 and fix for hardcoded path

This commit is contained in:
Daniel Fullmer 2015-08-21 23:06:50 +00:00
parent 1357692555
commit e23ee274b6

View file

@ -1,14 +1,14 @@
{ stdenv, fetchurl, openssl, lzo, zlib, gcc }:
{ stdenv, fetchurl, openssl, lzo, zlib, gcc, iproute }:
with stdenv.lib;
stdenv.mkDerivation rec {
version = "1.0.2";
version = "1.0.4";
name = "zerotierone";
src = fetchurl {
url = "https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz";
sha256 = "002ay4f6l9h79j1708klwjvinsv6asv24a0hql85jq27587sv6mq";
sha256 = "1klnsjajlas71flbf6w2q3iqhhqrmzqpd2g4qw9my66l7kcsbxfd";
};
preConfigure = ''
@ -16,12 +16,16 @@ stdenv.mkDerivation rec {
--replace 'CC=$(shell which clang gcc cc 2>/dev/null | head -n 1)' "CC=${gcc}/bin/gcc";
substituteInPlace ./make-linux.mk \
--replace 'CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)' "CC=${gcc}/bin/g++";
substituteInPlace ./osdep/LinuxEthernetTap.cpp \
--replace '/sbin/ip' "${iproute}/bin/ip"
'';
buildInputs = [ openssl lzo zlib gcc ];
buildInputs = [ openssl lzo zlib gcc iproute ];
installPhase = ''
installBin zerotier-one
ln -s $out/bin/zerotier-one $out/bin/zerotier-idtool
ln -s $out/bin/zerotier-one $out/bin/zerotier-cli
'';
meta = {