From cf360bbcadbc90033e8054120d83a31f42063c03 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 4 Apr 2024 15:04:28 -0700 Subject: [PATCH] git-gr: 1.0.3 -> 1.2.1 - https://github.com/9999years/git-gr/releases/tag/v1.2.0 - Adds `git gr api` to access the HTTP REST API - Adds `git gr show-chain` to show the relation chain for the current change - Queries related changes when traversing relation chains to correctly resolve outdated changes - https://github.com/9999years/git-gr/releases/tag/v1.2.1 - Adds `git gr view` to view a change in a web browser --- pkgs/by-name/gi/git-gr/package.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/gi/git-gr/package.nix b/pkgs/by-name/gi/git-gr/package.nix index 4bb7e82d2002..ca07589a0a30 100644 --- a/pkgs/by-name/gi/git-gr/package.nix +++ b/pkgs/by-name/gi/git-gr/package.nix @@ -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 ''