504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
846 B
Nix
33 lines
846 B
Nix
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dq";
|
|
version = "20240101";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janmojzis";
|
|
repo = "dq";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-dN2QpQU2jRkSVzaYh2MKbJvx0J1XACHHjsM/ePvZAp8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|