diff options
author | figsoda <figsoda@pm.me> | 2023-04-18 13:50:42 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-04-18 18:59:05 -0400 |
commit | 31efcd6c104f01533d9c6a3635457db1d9fca754 (patch) | |
tree | aaad38bb173de381149f7742d4ecbe16c6e6b346 /pkgs/applications/networking/dnscontrol | |
parent | c4c7de607a705ffbc14158842c904a67bf986e93 (diff) | |
download | nixlib-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.nix | 7 |
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 ]; }; |