2023-07-19 19:32:45 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dq";
|
2024-01-01 13:25:59 +01:00
|
|
|
version = "20240101";
|
2023-07-19 19:32:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janmojzis";
|
|
|
|
repo = "dq";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-01 13:25:59 +01:00
|
|
|
hash = "sha256-dN2QpQU2jRkSVzaYh2MKbJvx0J1XACHHjsM/ePvZAp8=";
|
2023-07-19 19:32:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 dq dqcache dqcache-makekey dqcache-start -t $out/bin
|
|
|
|
installManPage man/*
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Recursive DNS/DNSCurve server and comandline tool";
|
|
|
|
homepage = "https://github.com/janmojzis/dq";
|
|
|
|
changelog = "https://github.com/janmojzis/dq/releases/tag/${version}";
|
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|