depot/third_party/nixpkgs/pkgs/tools/networking/gen6dns/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

31 lines
784 B
Nix

{ lib, stdenv, fetchurl, installShellFiles }:
stdenv.mkDerivation rec {
pname = "gen6dns";
version = "1.3";
src = fetchurl {
url = "https://www.hznet.de/tools/gen6dns-${version}.tar.gz";
hash = "sha256-MhYfgzbGPmrhPx89EpObrEkxaII7uz4TbWXeEGF7Xws=";
};
nativeBuildInputs = [ installShellFiles ];
preInstall = ''
mkdir -p $out/bin
'';
postInstall = ''
installManPage gen6dns.1
'';
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;
};
}