diff options
author | Stewart Mackenzie <setori88@gmail.com> | 2015-04-05 14:46:14 +0800 |
---|---|---|
committer | Stewart Mackenzie <setori88@gmail.com> | 2015-04-05 21:41:15 +0800 |
commit | bdc7c6366eebe7a7110ae88135a4be4351676d61 (patch) | |
tree | 0e4bf654da42d725fb52e8e7544e327241405b82 /pkgs/tools/networking | |
parent | b3c423757e9f574ed51e1e5f01c7dfa1777def97 (diff) | |
download | nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar.gz nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar.bz2 nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar.lz nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar.xz nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.tar.zst nixpkgs-bdc7c6366eebe7a7110ae88135a4be4351676d61.zip |
New package: ZeroTierOne
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/zerotierone/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/networking/zerotierone/default.nix b/pkgs/tools/networking/zerotierone/default.nix new file mode 100644 index 00000000000..78c72967880 --- /dev/null +++ b/pkgs/tools/networking/zerotierone/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, openssl, lzo, zlib, gcc }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + version = "1.0.2"; + name = "zerotierone"; + + src = fetchurl { + url = "https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz"; + sha256 = "002ay4f6l9h79j1708klwjvinsv6asv24a0hql85jq27587sv6mq"; + }; + + preConfigure = '' + substituteInPlace ./make-linux.mk \ + --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++"; + ''; + + buildInputs = [ openssl lzo zlib gcc ]; + + installPhase = '' + installBin zerotier-one + ''; + + meta = { + description = "Create flat virtual Ethernet networks of almost unlimited size"; + homepage = https://www.zerotier.com; + license = stdenv.lib.licenses.gpl3; + maintainers = [ stdenv.lib.maintainers.sjmackenzie ]; + platforms = stdenv.lib.platforms.all; + }; +} |