dnstake: refactor and mark as broken on darwin (#408797)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -11,27 +11,20 @@ buildGoModule rec {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pwnesia";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM=";
|
||||
repo = "dnstake";
|
||||
tag = "v${version}";
|
||||
hash = "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 ];
|
||||
changelog = "https://github.com/pwnesia/dnstake/releases/tag/${src.tag}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "dnstake";
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user