node-problem-detector: buildFlags{,Array} -> ldflags, tags

also remove `-mod vendor` as it is the default with `buildGoModule`
This commit is contained in:
zowoq 2021-08-07 14:57:59 +10:00
parent de4743241f
commit b0f7b71577

View File

@ -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}"
];