tayga: 0.9.2 -> 0.9.5

Upstream has changed to there, and it's actively maintained.
This commit is contained in:
Florian Klink 2025-08-10 15:37:55 +02:00
parent 73582e4158
commit c6c3bb09d8

View File

@ -1,23 +1,32 @@
{ {
lib, lib,
stdenv, stdenv,
fetchurl, fetchFromGitHub,
nixosTests, nixosTests,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
version = "0.9.2"; version = "0.9.5";
pname = "tayga"; pname = "tayga";
src = fetchurl { src = fetchFromGitHub {
url = "http://www.litech.org/tayga/tayga-${finalAttrs.version}.tar.bz2"; owner = "apalrd";
hash = "sha256-Kx95J6nS3P+Qla/zwnGSSwUsz9L6ypWIsndDGkTwAJw="; repo = "tayga";
tag = finalAttrs.version;
hash = "sha256-xOm4fetFq2UGuhOojrT8WOcX78c6MLTMVbDv+O62x2E=";
}; };
env.NIX_CFLAGS_COMPILE = toString [ preBuild = ''
"-Wno-address-of-packed-member" echo "#define TAYGA_VERSION \"${finalAttrs.version}\"" > version.h
"-Wno-implicit-function-declaration" '';
];
installPhase = ''
install -Dm755 tayga $out/bin/tayga
install -D tayga.conf.5 $out/share/man/man5/tayga.conf.5
install -D tayga.8 $out/share/man/man8/tayga.8
cp -R docs $out/share/
cp tayga.conf.example $out/share/docs/
'';
passthru.tests.tayga = nixosTests.tayga; passthru.tests.tayga = nixosTests.tayga;
@ -30,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
It is intended to provide production-quality NAT64 service It is intended to provide production-quality NAT64 service
for networks where dedicated NAT64 hardware would be overkill. for networks where dedicated NAT64 hardware would be overkill.
''; '';
homepage = "http://www.litech.org/tayga"; homepage = "https://github.com/apalrd/tayga";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ _0x4A6F ]; maintainers = with maintainers; [ _0x4A6F ];
platforms = platforms.linux; platforms = platforms.linux;