netclient: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-10 14:38:35 -08:00
parent c4592c087c
commit 527e6be2dc
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -3,7 +3,6 @@
, lib
, libX11
, stdenv
, darwin
}:
buildGoModule rec {
@ -19,8 +18,7 @@ buildGoModule rec {
vendorHash = "sha256-ENrBJ0XbCfLfzTVZEVtDBjGxupdiLI7USGVImkYWDdY=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Cocoa
++ lib.optional stdenv.hostPlatform.isLinux libX11;
buildInputs = lib.optional stdenv.hostPlatform.isLinux libX11;
hardeningEnabled = [ "pie" ];