diff options
author | Rok Garbas <rok@garbas.si> | 2016-07-21 01:23:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-21 01:23:06 +0200 |
commit | e2f6c6b9d2e845805b5d95c90190fc4a648a5a03 (patch) | |
tree | 1af0a836be18be20e83c19b8507db55dab74bf7a /pkgs/tools/networking/zerotierone | |
parent | 79f6c2603c1f50f54ad8aa4d9eec5ad633173c88 (diff) | |
parent | cbe5813e8433b76254f33a389f2bba6dd4b10253 (diff) | |
download | nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.gz nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.bz2 nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.lz nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.xz nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.zst nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.zip |
Merge pull request #16620 from zimbatm/ronn-0.7.3
Ronn 0.7.3
Diffstat (limited to 'pkgs/tools/networking/zerotierone')
-rw-r--r-- | pkgs/tools/networking/zerotierone/default.nix | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/pkgs/tools/networking/zerotierone/default.nix b/pkgs/tools/networking/zerotierone/default.nix index 3dc68ca149aa..51a90544ca4b 100644 --- a/pkgs/tools/networking/zerotierone/default.nix +++ b/pkgs/tools/networking/zerotierone/default.nix @@ -1,6 +1,4 @@ -{ stdenv, fetchurl, openssl, lzo, zlib, gcc, iproute }: - -with stdenv.lib; +{ stdenv, fetchurl, openssl, lzo, zlib, iproute, which, ronn }: stdenv.mkDerivation rec { version = "1.1.12"; @@ -12,29 +10,35 @@ stdenv.mkDerivation rec { }; 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++"; substituteInPlace ./osdep/LinuxEthernetTap.cpp \ - --replace 'execlp("ip",' 'execlp("${iproute}/bin/ip",' - ''; + --replace 'execlp("ip",' 'execlp("${iproute}/bin/ip",' - buildInputs = [ openssl lzo zlib gcc iproute ]; + patchShebangs ./doc/build.sh + substituteInPlace ./doc/build.sh \ + --replace '/usr/bin/ronn' '${ronn}/bin/ronn' \ + --replace 'ronn -r' '${ronn}/bin/ronn -r' + ''; - buildFlags = [ "one" ]; # TODO: Add support for building and installing manpages as well. + buildInputs = [ openssl lzo zlib iproute which ronn ]; installPhase = '' install -Dt "$out/bin/" zerotier-one ln -s $out/bin/zerotier-one $out/bin/zerotier-idtool ln -s $out/bin/zerotier-one $out/bin/zerotier-cli + + mkdir -p $man/share/man/man8 + for cmd in zerotier-one.8 zerotier-cli.1 zerotier-idtool.1; do + cat doc/$cmd | gzip -9 > $man/share/man/man8/$cmd.gz + done ''; - meta = { + outputs = [ "out" "man" ]; + + meta = with stdenv.lib; { 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 = with stdenv.lib; platforms.allBut [ "i686-linux" ]; + license = licenses.gpl3; + maintainers = [ sjmackenzie ]; + platforms = platforms.allBut [ "i686-linux" ]; }; } |