commit 66b40b888f8621ddc445338f9205efb382983d90
parent 426ea055474c99f5b1429f9d2c7be502d671f829
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 19 Jul 2026 17:13:39 +0400
Add maradns
Diffstat:
1 file changed, 47 insertions(+), 0 deletions(-)
diff --git a/pkgs/by-name/ma/maradns/package.nix b/pkgs/by-name/ma/maradns/package.nix
@@ -0,0 +1,47 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "maradns";
+ version = "2026-07-05";
+
+ __structuredAttrs = true;
+
+ src = fetchFromGitHub {
+ owner = "samboy";
+ repo = "MaraDNS";
+ tag = finalAttrs.version;
+ hash = "sha256-43TWaaua4zQBXU72vKQF6WY41h+mpa40bhHhDL3CExM=";
+ };
+
+ postPatch = ''
+ substituteInPlace configure --replace-fail '"maradns"' '"source"'
+ '';
+
+ configurePhase = ''
+ echo VERSION=${finalAttrs.version} > VERSION
+ ./configure
+ '';
+
+ preInstall = ''
+ mkdir -p $out/share/man/man{1,5,8}
+ '';
+
+ dontCheckForBrokenSymlinks = true;
+
+ makeFlags = [ "PREFIX=$(out)" ];
+
+ meta = {
+ description = "A small open-source DNS server";
+ homepage = "https://github.com/samboy/MaraDNS";
+ license = with lib.licenses; [
+ bsd2
+ mit
+ ];
+ maintainers = [ lib.maintainers.sikmir ];
+ platforms = lib.platforms.unix;
+ };
+})