1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "git-interactive-rebase-tool";
9 version = "2.4.1";
10
11 src = fetchFromGitHub {
12 owner = "MitMaro";
13 repo = "git-interactive-rebase-tool";
14 rev = version;
15 hash = "sha256-NlnESZua4OP7rhMoER/VgBST9THqISQ0LCG1ZakNTqs=";
16 };
17
18 cargoHash = "sha256-WTg1o2iF5/UOVIqKFqGbC28B4HrKJWM0+XCHgaA1lc4=";
19
20 # Compilation during tests fails if this env var is not set.
21 preCheck = "export GIRT_BUILD_GIT_HASH=${version}";
22 postCheck = "unset GIRT_BUILD_GIT_HASH";
23
24 meta = {
25 homepage = "https://github.com/MitMaro/git-interactive-rebase-tool";
26 description = "Native cross platform full feature terminal based sequence editor for git interactive rebase";
27 changelog = "https://github.com/MitMaro/git-interactive-rebase-tool/releases/tag/${version}";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [
30 SuperSandro2000
31 zowoq
32 ma27
33 ];
34 mainProgram = "interactive-rebase-tool";
35 };
36}