Skip to content

Commit

Permalink
gitui: refactor, add passthru.updateScript, 0.26.3 -> 0.27.0 (NixOS…
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Jan 17, 2025
2 parents 3ca2ced + caad529 commit 2e11575
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions pkgs/by-name/gi/gitui/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,31 @@
libiconv,
openssl,
pkg-config,
cmake,
xclip,
darwin,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
let
pname = "gitui";
version = "0.26.3";
version = "0.27.0";
in
rustPlatform.buildRustPackage {
inherit pname version;

src = fetchFromGitHub {
owner = "extrawurst";
repo = "gitui";
rev = "v${version}";
hash = "sha256-j3y+KjC+o9p2omf4bN8+XevwU7WqiaQ0sfPqHySD2ik=";
hash = "sha256-jKJ1XnF6S7clyFGN2o3bHnYpC4ckl/lNXscmf6GRLbI=";
};

cargoHash = "sha256-vVEo0kSghOQsH3T6ZTAzN7gIUku0n7rDbKwNmOM9GZc=";
cargoHash = "sha256-T00TqxR2EWnDkZo3MUQhiG0oAUf1PgpkUMZLt7f4FH0=";

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
cmake
];

buildInputs =
[ openssl ]
Expand Down Expand Up @@ -54,12 +61,14 @@ rustPlatform.buildRustPackage rec {
"--skip=keys::key_config::tests::test_symbolic_links"
];

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/extrawurst/gitui/blob/v${version}/CHANGELOG.md";
description = "Blazing fast terminal-ui for Git written in Rust";
homepage = "https://github.com/extrawurst/gitui";
changelog = "https://github.com/extrawurst/gitui/blob/v${version}/CHANGELOG.md";
mainProgram = "gitui";
license = lib.licenses.mit;
mainProgram = "gitui";
maintainers = with lib.maintainers; [
Br1ght0ne
yanganto
Expand Down

0 comments on commit 2e11575

Please sign in to comment.