nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 nixosTests,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 version = "0.9.2";
10 pname = "tayga";
11
12 src = fetchurl {
13 url = "http://www.litech.org/tayga/tayga-${finalAttrs.version}.tar.bz2";
14 hash = "sha256-Kx95J6nS3P+Qla/zwnGSSwUsz9L6ypWIsndDGkTwAJw=";
15 };
16
17 env.NIX_CFLAGS_COMPILE = toString [
18 "-Wno-address-of-packed-member"
19 "-Wno-implicit-function-declaration"
20 ];
21
22 passthru.tests.tayga = nixosTests.tayga;
23
24 meta = with lib; {
25 description = "Userland stateless NAT64 daemon";
26 longDescription = ''
27 TAYGA is an out-of-kernel stateless NAT64 implementation
28 for Linux that uses the TUN driver to exchange IPv4 and
29 IPv6 packets with the kernel.
30 It is intended to provide production-quality NAT64 service
31 for networks where dedicated NAT64 hardware would be overkill.
32 '';
33 homepage = "http://www.litech.org/tayga";
34 license = licenses.gpl2Plus;
35 maintainers = with maintainers; [ _0x4A6F ];
36 platforms = platforms.linux;
37 mainProgram = "tayga";
38 };
39})