mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
Merge pull request #7174 from sjmackenzie/zerotierone
New package: ZeroTierOne
This commit is contained in:
commit
78dc2c00ac
34
pkgs/tools/networking/zerotierone/default.nix
Normal file
34
pkgs/tools/networking/zerotierone/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -3226,6 +3226,8 @@ let
|
||||
|
||||
zdelta = callPackage ../tools/compression/zdelta { };
|
||||
|
||||
zerotierone = callPackage ../tools/networking/zerotierone { };
|
||||
|
||||
zfstools = callPackage ../tools/filesystems/zfstools { };
|
||||
|
||||
zile = callPackage ../applications/editors/zile { };
|
||||
|
Loading…
Reference in New Issue
Block a user