From 9c0908cb829217edc38729eaf4bc603a39145a0f Mon Sep 17 00:00:00 2001 From: Majiir Paktu Date: Tue, 6 Sep 2022 16:23:58 -0400 Subject: [PATCH 1/2] gen6dns: init at 1.3 --- pkgs/tools/networking/gen6dns/default.nix | 25 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/networking/gen6dns/default.nix diff --git a/pkgs/tools/networking/gen6dns/default.nix b/pkgs/tools/networking/gen6dns/default.nix new file mode 100644 index 000000000000..b69e2a299e6c --- /dev/null +++ b/pkgs/tools/networking/gen6dns/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "gen6dns"; + version = "1.3"; + + src = fetchurl { + url = "https://www.hznet.de/tools/gen6dns-${version}.tar.gz"; + hash = "sha256-MhYfgzbGPmrhPx89EpObrEkxaII7uz4TbWXeEGF7Xws="; + }; + + preInstall = '' + mkdir -p $out/bin + ''; + + makeFlags = [ "INSTALL_DIR=$(out)/bin" ]; + + meta = with lib; { + description = "Tool to generate static DNS records (AAAA and PTR) for hosts using Stateless Address Autoconfig (SLAAC)"; + homepage = "https://www.hznet.de/tools.html#gen6dns"; + license = licenses.bsd3; + maintainers = with maintainers; [ majiir ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5d2f6ac66b91..229e93896a47 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1265,6 +1265,8 @@ with pkgs; gam = callPackage ../tools/admin/gam { }; + gen6dns = callPackage ../tools/networking/gen6dns { }; + gfshare = callPackage ../tools/security/gfshare { }; gh-cal = callPackage ../tools/misc/gh-cal { From 9c7d190b73101a3c7f94a102fbc768e7d2476ed3 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 8 Sep 2022 04:20:00 +0000 Subject: [PATCH 2/2] gen6dns: install manpage --- pkgs/tools/networking/gen6dns/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/gen6dns/default.nix b/pkgs/tools/networking/gen6dns/default.nix index b69e2a299e6c..6f020c2a6636 100644 --- a/pkgs/tools/networking/gen6dns/default.nix +++ b/pkgs/tools/networking/gen6dns/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchurl, installShellFiles }: stdenv.mkDerivation rec { pname = "gen6dns"; @@ -9,10 +9,16 @@ stdenv.mkDerivation rec { hash = "sha256-MhYfgzbGPmrhPx89EpObrEkxaII7uz4TbWXeEGF7Xws="; }; + nativeBuildInputs = [ installShellFiles ]; + preInstall = '' mkdir -p $out/bin ''; + postInstall = '' + installManPage gen6dns.1 + ''; + makeFlags = [ "INSTALL_DIR=$(out)/bin" ]; meta = with lib; {