at 18.09-beta 687 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libnl }: 2 3let 4 sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; }; 5in 6 7stdenv.mkDerivation { 8 name = "jool-cli-${sourceAttrs.version}"; 9 10 src = sourceAttrs.src; 11 12 setSourceRoot = '' 13 sourceRoot=$(echo */usr) 14 ''; 15 16 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 17 buildInputs = [ libnl ]; 18 19 postPatch = '' 20 chmod u+w -R ../common 21 ''; 22 23 meta = with stdenv.lib; { 24 homepage = https://www.jool.mx/; 25 description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools"; 26 platforms = platforms.linux; 27 license = licenses.gpl2; 28 maintainers = with maintainers; [ fpletz ]; 29 }; 30}