summary refs log tree commit diff
path: root/pkgs/tools/networking/dnsproxy
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-29 08:10:32 -0400
committerfigsoda <figsoda@pm.me>2021-10-29 08:15:16 -0400
commit8182f670c5a1f95f5de8dd5e84b751ab56b3ec20 (patch)
tree138d77d1104db4e8baca6a9b49502a97aacef1f8 /pkgs/tools/networking/dnsproxy
parent5885759cdb35f68d71d2d34a5c1380b626d589bc (diff)
dnsproxy: fix version output, fix license
Diffstat (limited to 'pkgs/tools/networking/dnsproxy')
-rw-r--r--pkgs/tools/networking/dnsproxy/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/networking/dnsproxy/default.nix b/pkgs/tools/networking/dnsproxy/default.nix
index 129d3074d2b4f..b412c7bf46c85 100644
--- a/pkgs/tools/networking/dnsproxy/default.nix
+++ b/pkgs/tools/networking/dnsproxy/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, buildGoModule }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "dnsproxy";
@@ -13,12 +13,14 @@ buildGoModule rec {
 
   vendorSha256 = null;
 
+  ldflags = [ "-s" "-w" "-X" "main.VersionString=${version}" ];
+
   doCheck = false;
 
   meta = with lib; {
     description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
     homepage = "https://github.com/AdguardTeam/dnsproxy";
-    license = licenses.gpl3;
+    license = licenses.asl20;
     maintainers = with maintainers; [ contrun ];
   };
 }