git-branchless: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-10 23:39:46 -08:00
parent 4551bd2dba
commit 83bd590807
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 6 additions and 17 deletions

View File

@ -2,15 +2,12 @@
lib,
fetchFromGitHub,
git,
libiconv,
ncurses,
openssl,
pkg-config,
rustPlatform,
sqlite,
stdenv,
Security,
SystemConfiguration,
}:
rustPlatform.buildRustPackage rec {
@ -28,16 +25,10 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
buildInputs = [
ncurses
openssl
sqlite
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
Security
SystemConfiguration
libiconv
];
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''

View File

@ -1227,9 +1227,7 @@ with pkgs;
git-archive-all = python3.pkgs.callPackage ../applications/version-management/git-archive-all { };
git-branchless = callPackage ../applications/version-management/git-branchless {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
git-branchless = callPackage ../applications/version-management/git-branchless { };
git-cinnabar = callPackage ../applications/version-management/git-cinnabar {
inherit (darwin.apple_sdk.frameworks) CoreServices;