Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
curl,
|
|
dnsdbq,
|
|
fetchFromGitHub,
|
|
jansson,
|
|
lib,
|
|
nix-update-script,
|
|
stdenv,
|
|
testers,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "dnsdbq";
|
|
version = "2.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dnsdb";
|
|
repo = "dnsdbq";
|
|
rev = "v${version}";
|
|
hash = "sha256-5Pi8xFZXnU3abIsH9m6xqrQ6NnEtAbhMU6HXsOYP0gg=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
version = testers.testVersion {
|
|
package = dnsdbq;
|
|
command = "dnsdbq -v";
|
|
};
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
curl # curl-config
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
jansson
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp dnsdbq $out/bin
|
|
mkdir -p $out/man/man1
|
|
cp dnsdbq.man $out/man/man1/dnsdbq.1
|
|
runHook postInstall
|
|
'';
|
|
|
|
extraOutputsToInstall = [ "man" ];
|
|
|
|
meta = {
|
|
description = "C99 program that accesses passive DNS database systems";
|
|
homepage = "https://github.com/dnsdb/dnsdbq";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ x123 ];
|
|
mainProgram = "dnsdbq";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|