15 src = fetchFromGitHub {
16 owner = "IrineSistiana";
19 hash = "sha256-nSqSfbpi91W28DaLjCsWlPiLe1gLVHeZnstktc/CLag=";
22 vendorHash = "sha256-RpvWkIDhHSNbdkpBCcXYbbvbmGiG15qyB5aEJRmg9s4=";
24 nativeBuildInputs = [ installShellFiles ];
29 "-X main.version=${version}"
32 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
33 installShellCompletion --cmd mosdns \
34 --bash <($out/bin/mosdns completion bash) \
35 --fish <($out/bin/mosdns completion fish) \
36 --zsh <($out/bin/mosdns completion zsh)
40 version = testers.testVersion {
42 command = "${lib.getExe mosdns} version";
47 description = "Modular, pluggable DNS forwarder";
48 homepage = "https://github.com/IrineSistiana/mosdns";
49 license = lib.licenses.gpl3Only;
50 maintainers = with lib.maintainers; [ moraxyc ];
51 mainProgram = "mosdns";