nixpkgs/pkgs/tools/networking/dnsmonster/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
852 B
Nix
Raw Normal View History

2022-06-19 09:22:06 +02:00
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, libpcap
}:
buildGoModule rec {
pname = "dnsmonster";
2022-11-08 19:25:30 +01:00
version = "0.9.7";
2022-06-19 09:22:06 +02:00
src = fetchFromGitHub {
owner = "mosajjal";
repo = pname;
rev = "v${version}";
2022-11-08 19:25:30 +01:00
hash = "sha256-fpyx2/2P2tMx/n5pCZkUie3uU9jarRU2QVMBs8jEc6Q=";
2022-06-19 09:22:06 +02:00
};
2022-11-08 19:25:30 +01:00
vendorSha256 = "sha256-kZkzTi3i8J6K8x+nSjGeyzEBRPeDEP6qX5KMv/weAXg=";
2022-06-19 09:22:06 +02:00
buildInputs = [
libpcap
];
ldflags = [
"-s"
"-w"
"-X github.com/mosajjal/dnsmonster/util.releaseVersion=${version}"
];
meta = with lib; {
description = "Passive DNS Capture and Monitoring Toolkit";
homepage = "https://github.com/mosajjal/dnsmonster";
changelog = "https://github.com/mosajjal/dnsmonster/releases/tag/v${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
broken = stdenv.isDarwin;
};
}