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 , stdenv
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, AppKit
, libxcb , libxcb
}: }:
@ -19,8 +18,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-DMswC+Qp6w7Dcp5YYV4EGWUylv/ouG0ukAdCdDnOA/8="; cargoHash = "sha256-DMswC+Qp6w7Dcp5YYV4EGWUylv/ouG0ukAdCdDnOA/8=";
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ] buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/replydev/cotp"; homepage = "https://github.com/replydev/cotp";

View File

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