mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 10:30:32 +00:00
dnsdbq: init at 2.6.7
This commit is contained in:
60
pkgs/by-name/dn/dnsdbq/package.nix
Normal file
60
pkgs/by-name/dn/dnsdbq/package.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
curl,
|
||||
dnsdbq,
|
||||
fetchFromGitHub,
|
||||
jansson,
|
||||
lib,
|
||||
nix-update-script,
|
||||
stdenv,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dnsdbq";
|
||||
version = "2.6.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dnsdb";
|
||||
repo = "dnsdbq";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-VeoLgDLly5bDIzvcf6Xb+tqCaQxIzeSpoW3ij+Hq4O8=";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user