Unverified Commit 290355ff authored by Theodore Ni's avatar Theodore Ni
Browse files

gh-cal: use new Darwin SDK pattern

parent 5e3f42b6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
{ 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";
+1 −3
Original line number Diff line number Diff line
@@ -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 { };