clatd: init at 1.6
[clatd](https://github.com/toreanderson/clatd) implements the CLAT component of the 464XLAT network architecture specified in RFC 6877.
This commit is contained in:
parent
2fd19c8be2
commit
30ed264371
1 changed files with 63 additions and 0 deletions
63
pkgs/by-name/cl/clatd/package.nix
Normal file
63
pkgs/by-name/cl/clatd/package.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, perl
|
||||
, perlPackages
|
||||
, tayga
|
||||
, iproute2
|
||||
, iptables
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clatd";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "toreanderson";
|
||||
repo = "clatd";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ZUGWQTXXgATy539NQxkZSvQA7HIWkIPsw1NJrz0xKEg=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
perl # for pod2man
|
||||
];
|
||||
|
||||
buildInputs = with perlPackages; [
|
||||
perl
|
||||
NetIP
|
||||
NetDNS
|
||||
];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p $out/{sbin,share/man/man8}
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
patchShebangs $out/bin/clatd
|
||||
wrapProgram $out/bin/clatd \
|
||||
--set PERL5LIB $PERL5LIB \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
tayga
|
||||
iproute2
|
||||
iptables
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 464XLAT CLAT implementation for Linux";
|
||||
homepage = "https://github.com/toreanderson/clatd";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jmbaur ];
|
||||
mainProgram = "clatd";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue