package.nix (920B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "maradns"; 9 version = "2026-07-05"; 10 11 __structuredAttrs = true; 12 13 src = fetchFromGitHub { 14 owner = "samboy"; 15 repo = "MaraDNS"; 16 tag = finalAttrs.version; 17 hash = "sha256-43TWaaua4zQBXU72vKQF6WY41h+mpa40bhHhDL3CExM="; 18 }; 19 20 postPatch = '' 21 substituteInPlace configure --replace-fail '"maradns"' '"source"' 22 ''; 23 24 configurePhase = '' 25 echo VERSION=${finalAttrs.version} > VERSION 26 ./configure 27 ''; 28 29 preInstall = '' 30 mkdir -p $out/share/man/man{1,5,8} 31 ''; 32 33 dontCheckForBrokenSymlinks = true; 34 35 makeFlags = [ "PREFIX=$(out)" ]; 36 37 meta = { 38 description = "A small open-source DNS server"; 39 homepage = "https://github.com/samboy/MaraDNS"; 40 license = with lib.licenses; [ 41 bsd2 42 mit 43 ]; 44 maintainers = [ lib.maintainers.sikmir ]; 45 platforms = lib.platforms.unix; 46 }; 47 })
