trying to fix darwin build

This commit is contained in:
06kellyjac 2022-05-17 17:53:10 +01:00
parent 19c42b883f
commit 73714678f1
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,9 @@
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, CoreFoundation
, Security
}:
buildGoModule rec {
@ -13,11 +16,13 @@ buildGoModule rec {
rev = "v${version}";
sha256 = "sha256-zyTUGAxUAfrigRNiw03ZXFK+UkpuxwuU2xviZmAPuR8=";
};
vendorSha256 = "sha256-dgiKWHSm49/CB4dWrNWIzkkmj6Aw4l+9iLa6xe/umq0=";
excludedPackages = "misc";
buildInputs = lib.optionals (stdenv.isDarwin && stdenv.isx86_64)
[ CoreFoundation Security ];
ldflags = [
"-s"
"-w"

View File

@ -5471,6 +5471,7 @@ with pkgs;
trivy = callPackage ../tools/admin/trivy {
buildGoModule = buildGo118Module;
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
};
trompeloeil = callPackage ../development/libraries/trompeloeil { };