15 src = fetchFromGitHub {
16 owner = "IrineSistiana";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-QujkDx899GAImEtQE28ru7H0Zym5SYXJbJEfSBkJYjo=";
22 vendorHash = "sha256-0J5hXb1W8UruNG0KFaJBOQwHl2XiWg794A6Ktgv+ObM=";
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";