Skip to content

Commit 001bfb9

Browse files
yvan-srakasamrose
authored andcommitted
fix(darwin): remove deprecated apple_sdk frameworks from supascan
Remove references to darwin.apple_sdk.frameworks.{IOKit,CoreFoundation} which have been deprecated in nixpkgs. Disable CGO to avoid Darwin framework dependencies entirely.
1 parent 14aff04 commit 001bfb9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

nix/packages/supascan.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ let
4242

4343
subPackages = [ "cmd/supascan" ];
4444

45+
# Disable CGO to avoid Darwin framework dependencies
46+
env.CGO_ENABLED = "0";
47+
4548
ldflags = [
4649
"-s"
4750
"-w"
@@ -56,11 +59,6 @@ let
5659
--prefix PATH : ${goss}/bin
5760
'';
5861

59-
buildInputs = lib.optionals pkgs.stdenv.isDarwin [
60-
pkgs.darwin.apple_sdk.frameworks.IOKit
61-
pkgs.darwin.apple_sdk.frameworks.CoreFoundation
62-
];
63-
6462
doCheck = true;
6563
checkPhase = ''
6664
go test -v ./...

0 commit comments

Comments
 (0)