pkgs/applications: stdenv.lib -> lib
This commit is contained in:
@@ -20,16 +20,16 @@ buildGoModule rec {
|
||||
# Linux-only feature. See 'ENABLE_JOURNALD' upstream:
|
||||
# https://github.com/kubernetes/node-problem-detector/blob/master/Makefile
|
||||
subPackages = [ "cmd/nodeproblemdetector" ] ++
|
||||
stdenv.lib.optionals stdenv.isLinux [ "cmd/logcounter" ];
|
||||
lib.optionals stdenv.isLinux [ "cmd/logcounter" ];
|
||||
|
||||
preBuild = ''
|
||||
export CGO_ENABLED=${if stdenv.isLinux then "1" else "0"}
|
||||
'';
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ systemd ];
|
||||
buildInputs = lib.optionals stdenv.isLinux [ systemd ];
|
||||
|
||||
buildFlags = "-mod vendor" +
|
||||
stdenv.lib.optionalString stdenv.isLinux " -tags journald";
|
||||
lib.optionalString stdenv.isLinux " -tags journald";
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
|
||||
Reference in New Issue
Block a user