cotp: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-09 21:48:32 -08:00
parent 512e87a0f8
commit f2ffd24d2a
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,7 +2,6 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, AppKit
, libxcb
}:
@ -19,8 +18,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-DMswC+Qp6w7Dcp5YYV4EGWUylv/ouG0ukAdCdDnOA/8=";
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
meta = with lib; {
homepage = "https://github.com/replydev/cotp";

View File

@ -292,9 +292,7 @@ with pkgs;
cloak = callPackage ../applications/misc/cloak { };
cotp = callPackage ../applications/misc/cotp {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
cotp = callPackage ../applications/misc/cotp { };
cope = callPackage ../by-name/co/cope/package.nix {
perl = perl538;