Merge pull request #304477 from jmbaur/clatd

clatd: init at 1.6

authored by Aleksana and committed by GitHub e8664fce 8451d7f4

+63
+63
pkgs/by-name/cl/clatd/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , makeWrapper 5 + , perl 6 + , perlPackages 7 + , tayga 8 + , iproute2 9 + , iptables 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "clatd"; 14 + version = "1.6"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "toreanderson"; 18 + repo = "clatd"; 19 + rev = "v${version}"; 20 + hash = "sha256-ZUGWQTXXgATy539NQxkZSvQA7HIWkIPsw1NJrz0xKEg="; 21 + }; 22 + 23 + strictDeps = true; 24 + 25 + nativeBuildInputs = [ 26 + makeWrapper 27 + perl # for pod2man 28 + ]; 29 + 30 + buildInputs = with perlPackages; [ 31 + perl 32 + NetIP 33 + NetDNS 34 + ]; 35 + 36 + makeFlags = [ "PREFIX=$(out)" ]; 37 + 38 + preBuild = '' 39 + mkdir -p $out/{sbin,share/man/man8} 40 + ''; 41 + 42 + postFixup = '' 43 + patchShebangs $out/bin/clatd 44 + wrapProgram $out/bin/clatd \ 45 + --set PERL5LIB $PERL5LIB \ 46 + --prefix PATH : ${ 47 + lib.makeBinPath [ 48 + tayga 49 + iproute2 50 + iptables 51 + ] 52 + } 53 + ''; 54 + 55 + meta = with lib; { 56 + description = "A 464XLAT CLAT implementation for Linux"; 57 + homepage = "https://github.com/toreanderson/clatd"; 58 + license = licenses.mit; 59 + maintainers = with maintainers; [ jmbaur ]; 60 + mainProgram = "clatd"; 61 + platforms = platforms.linux; 62 + }; 63 + }