coldsnap: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-09 21:53:47 -08:00
parent 8079fe3967
commit 0fd590bab8
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 2 additions and 6 deletions

View File

@ -2,8 +2,6 @@
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, openssl , openssl
, stdenv
, Security
, pkg-config , pkg-config
}: }:
@ -19,7 +17,7 @@ rustPlatform.buildRustPackage rec {
}; };
cargoHash = "sha256-ngkoxybl52zTH4wo+sIUtU8vtzOAp+jU1RyTO2KbCgU="; cargoHash = "sha256-ngkoxybl52zTH4wo+sIUtU8vtzOAp+jU1RyTO2KbCgU=";
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ]; buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
meta = with lib; { meta = with lib; {

View File

@ -301,9 +301,7 @@ with pkgs;
cocogitto = callPackage ../development/tools/cocogitto { }; cocogitto = callPackage ../development/tools/cocogitto { };
coldsnap = callPackage ../tools/admin/coldsnap { coldsnap = callPackage ../tools/admin/coldsnap { };
inherit (darwin.apple_sdk.frameworks) Security;
};
collision = callPackage ../applications/misc/collision { }; collision = callPackage ../applications/misc/collision { };