mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
git-branchless: use new Darwin SDK pattern
This commit is contained in:
parent
4551bd2dba
commit
83bd590807
@ -2,15 +2,12 @@
|
|||||||
lib,
|
lib,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
git,
|
||||||
libiconv,
|
|
||||||
ncurses,
|
ncurses,
|
||||||
openssl,
|
openssl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
sqlite,
|
sqlite,
|
||||||
stdenv,
|
stdenv,
|
||||||
Security,
|
|
||||||
SystemConfiguration,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -28,17 +25,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
[
|
ncurses
|
||||||
ncurses
|
openssl
|
||||||
openssl
|
sqlite
|
||||||
sqlite
|
];
|
||||||
]
|
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
Security
|
|
||||||
SystemConfiguration
|
|
||||||
libiconv
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''
|
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''
|
||||||
$out/bin/git-branchless install-man-pages $out/share/man
|
$out/bin/git-branchless install-man-pages $out/share/man
|
||||||
|
@ -1227,9 +1227,7 @@ with pkgs;
|
|||||||
|
|
||||||
git-archive-all = python3.pkgs.callPackage ../applications/version-management/git-archive-all { };
|
git-archive-all = python3.pkgs.callPackage ../applications/version-management/git-archive-all { };
|
||||||
|
|
||||||
git-branchless = callPackage ../applications/version-management/git-branchless {
|
git-branchless = callPackage ../applications/version-management/git-branchless { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
|
||||||
};
|
|
||||||
|
|
||||||
git-cinnabar = callPackage ../applications/version-management/git-cinnabar {
|
git-cinnabar = callPackage ../applications/version-management/git-cinnabar {
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
Loading…
Reference in New Issue
Block a user