about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/node-problem-detector
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2021-08-07 14:57:59 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-08-07 15:00:03 +1000
commitb0f7b71577b4513abad088fc66e339d7a87005db (patch)
tree018c084607e6e358b84063f06fe439c28b6281ba /pkgs/applications/networking/cluster/node-problem-detector
parentde4743241fd2ad3c0c1822855d22865f989934d3 (diff)
node-problem-detector: buildFlags{,Array} -> ldflags, tags
also remove `-mod vendor` as it is the default with `buildGoModule`
Diffstat (limited to 'pkgs/applications/networking/cluster/node-problem-detector')
-rw-r--r--pkgs/applications/networking/cluster/node-problem-detector/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/applications/networking/cluster/node-problem-detector/default.nix b/pkgs/applications/networking/cluster/node-problem-detector/default.nix
index e53a9c39ea7e4..0d23e94879a88 100644
--- a/pkgs/applications/networking/cluster/node-problem-detector/default.nix
+++ b/pkgs/applications/networking/cluster/node-problem-detector/default.nix
@@ -28,11 +28,9 @@ buildGoModule rec {
 
   buildInputs = lib.optionals stdenv.isLinux [ systemd ];
 
-  buildFlags = "-mod vendor" +
-    lib.optionalString stdenv.isLinux " -tags journald";
+  tags = lib.optionals stdenv.isLinux [ "journald" ];
 
-  buildFlagsArray = [
-    "-ldflags="
+  ldflags = [
     "-X k8s.io/${pname}/pkg/version.version=v${version}"
   ];