gh-cal: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-10 21:28:15 -08:00
parent 5e3f42b693
commit 290355ff24
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,8 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "gh-cal";
@ -18,7 +16,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-73gqk0DjhaLGIEP5VQQlubPomxHQyg4RnY5XTgE7msQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
buildInputs = [ openssl ];
meta = with lib; {
description = "GitHub contributions calender terminal viewer";

View File

@ -1011,9 +1011,7 @@ with pkgs;
python3Packages = python311Packages;
});
gh-cal = callPackage ../tools/misc/gh-cal {
inherit (darwin.apple_sdk.frameworks) Security;
};
gh-cal = callPackage ../tools/misc/gh-cal { };
gp-saml-gui = python3Packages.callPackage ../tools/networking/gp-saml-gui { };