2017-07-31 23:31:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libnl }:
|
2015-06-29 11:58:07 +01:00
|
|
|
|
|
|
|
let
|
2017-07-31 23:31:12 +01:00
|
|
|
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
2015-06-29 11:58:07 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "jool-cli-${sourceAttrs.version}";
|
|
|
|
|
|
|
|
src = sourceAttrs.src;
|
|
|
|
|
2017-07-31 23:31:12 +01:00
|
|
|
sourceRoot = "Jool-v${sourceAttrs.version}-src/usr";
|
2015-06-29 11:58:07 +01:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libnl ];
|
2015-06-29 11:58:07 +01:00
|
|
|
|
2016-10-03 16:58:38 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod u+w -R ../common
|
|
|
|
'';
|
|
|
|
|
2015-06-29 11:58:07 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|