From 31efcd6c104f01533d9c6a3635457db1d9fca754 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 18 Apr 2023 13:50:42 -0400 Subject: [PATCH] dnscontrol: fix version, only build the main package --- pkgs/applications/networking/dnscontrol/default.nix | 7 +++++-- 1 file 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 ]; };