depot/pkgs/tools/networking/dnstake/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
924 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
}:
buildGoModule rec {
pname = "dnstake";
version = "0.1.1";
src = fetchFromGitHub {
owner = "pwnesia";
repo = pname;
rev = "v${version}";
sha256 = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM=";
};
patches = [
# https://github.com/pwnesia/dnstake/pull/36
(fetchpatch {
name = "update-x-sys-fix-darwin.patch";
url = "https://github.com/pwnesia/dnstake/commit/974efbbff4ce26d2f2646ca2ceb1316c131cefbe.patch";
sha256 = "sha256-fLOGF8damdLROd8T0fH/FGSVX23dtc+yHhSvVCwVeuY=";
})
];
vendorHash = "sha256-lV6dUl+OMUQfhlgNL38k0Re1Mr3VP9b8SI3vTJ8CP18=";
meta = with lib; {
description = "Tool to check missing hosted DNS zones";
homepage = "https://github.com/pwnesia/dnstake";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "dnstake";
};
}