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

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

34 lines
846 B
Nix
Raw Normal View History

2023-07-19 19:32:45 +02:00
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
stdenv.mkDerivation rec {
pname = "dq";
version = "20230101";
src = fetchFromGitHub {
owner = "janmojzis";
repo = "dq";
rev = "refs/tags/${version}";
hash = "sha256-K96yOonOYSsz26Bf/vx9XtWs7xyY0Dpxdd55OMbQz8k=";
};
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 ];
};
}