2017-07-31 22:31:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libnl }:
|
2015-06-29 10:58:07 +00:00
|
|
|
|
|
|
|
let
|
2017-07-31 22:31:12 +00:00
|
|
|
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
2015-06-29 10:58:07 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "jool-cli-${sourceAttrs.version}";
|
|
|
|
|
|
|
|
src = sourceAttrs.src;
|
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */usr)
|
|
|
|
'';
|
2015-06-29 10:58:07 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libnl ];
|
2015-06-29 10:58:07 +00:00
|
|
|
|
2016-10-03 15:58:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod u+w -R ../common
|
|
|
|
'';
|
|
|
|
|
2015-06-29 10:58:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.jool.mx/;
|
|
|
|
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|