Merge pull request #308153 from Lagoja/kubeclarity-darwin

kubeclarity: fix Darwin build
This commit is contained in:
Fabian Affolter 2024-05-07 23:48:00 +02:00 committed by GitHub
commit 369783f6a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
, fetchFromGitHub
, lvm2
, pkg-config
, stdenv
}:
buildGoModule rec {
@ -17,19 +18,23 @@ buildGoModule rec {
hash = "sha256-buEahr6lr+C/99ANAgYdexPX76ECW6yGMes8u2GZKh4=";
};
vendorHash = "sha256-eAqF0ohZGryRh4u+j/30BObYP23yyrTecPrt+xmn9Sg=";
vendorHash = "sha256-JY64fqzNBpo9Jwo8sWsWTVVAO5zzwxwXy0A2bgqJHuU=";
proxyVendor = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
buildInputs = lib.optionals stdenv.isLinux [
btrfs-progs
lvm2
];
sourceRoot = "${src.name}/cli";
CGO_ENABLED = "0";
ldflags = [
"-s"
"-w"