Merge pull request #301661 from 9999years/git-gr-update
git-gr: 1.0.3 -> 1.2.1
This commit is contained in:
commit
a5ff8b53ad
@ -8,12 +8,14 @@
|
||||
libiconv,
|
||||
darwin,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
openssl,
|
||||
}:
|
||||
let
|
||||
canRunGitGr = stdenv.hostPlatform.emulatorAvailable buildPackages;
|
||||
gitGr = "${stdenv.hostPlatform.emulator buildPackages} $out/bin/git-gr";
|
||||
pname = "git-gr";
|
||||
version = "1.0.3";
|
||||
version = "1.2.1";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname version;
|
||||
@ -22,18 +24,25 @@ rustPlatform.buildRustPackage {
|
||||
owner = "9999years";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-hvK4reFR60q9mw3EdNLav9VMr4H6Zabv1N1D/5AAKuQ=";
|
||||
hash = "sha256-5Pr1z+RmY92cfT7KtFnUKpzhniUN6RjDKBekWiYCCuU=";
|
||||
};
|
||||
|
||||
buildFeatures = [ "clap_mangen" ];
|
||||
|
||||
cargoHash = "sha256-efoRiPWugz955MflIS81Nie7Oq5Y4u5CI+/el8fJVl0=";
|
||||
cargoHash = "sha256-5JLTSBBTPGUbuqUql/cMJKBLlO2uzuU1EDhfScaeCUg=";
|
||||
|
||||
OPENSSL_NO_VENDOR = true;
|
||||
|
||||
nativeBuildInputs =
|
||||
[ installShellFiles ]
|
||||
[installShellFiles]
|
||||
++ lib.optional stdenv.isLinux pkg-config;
|
||||
|
||||
buildInputs =
|
||||
lib.optional stdenv.isLinux openssl
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
libiconv
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString canRunGitGr ''
|
||||
|
Loading…
Reference in New Issue
Block a user