about summary refs log tree commit diff
path: root/pkgs/applications/networking/dnscontrol
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-04-18 13:50:42 -0400
committerfigsoda <figsoda@pm.me>2023-04-18 18:59:05 -0400
commit31efcd6c104f01533d9c6a3635457db1d9fca754 (patch)
treeaaad38bb173de381149f7742d4ecbe16c6e6b346 /pkgs/applications/networking/dnscontrol
parentc4c7de607a705ffbc14158842c904a67bf986e93 (diff)
downloadnixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar.gz
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar.bz2
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar.lz
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar.xz
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.tar.zst
nixlib-31efcd6c104f01533d9c6a3635457db1d9fca754.zip
dnscontrol: fix version, only build the main package
Diffstat (limited to 'pkgs/applications/networking/dnscontrol')
-rw-r--r--pkgs/applications/networking/dnscontrol/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/networking/dnscontrol/default.nix b/pkgs/applications/networking/dnscontrol/default.nix
index b339c528fa37..47c47276095d 100644
--- a/pkgs/applications/networking/dnscontrol/default.nix
+++ b/pkgs/applications/networking/dnscontrol/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, buildGoModule }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "dnscontrol";
@@ -13,7 +13,9 @@ buildGoModule rec {
 
   vendorHash = "sha256-BE/UnJw5elHYmyB+quN89ZkrlMcTjaVN0T2+h8cpPS8=";
 
-  ldflags = [ "-s" "-w" ];
+  subPackages = [ "." ];
+
+  ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
 
   preCheck = ''
     # requires network
@@ -23,6 +25,7 @@ buildGoModule rec {
   meta = with lib; {
     description = "Synchronize your DNS to multiple providers from a simple DSL";
     homepage = "https://stackexchange.github.io/dnscontrol/";
+    changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
     license = licenses.mit;
     maintainers = with maintainers; [ mmahut SuperSandro2000 ];
   };