14 src = fetchFromGitLab {
17 rev = "version/${version}";
18 hash = "sha256-hMP5mBKXcO+Ws04G3OxdYuB5JoaSjlYtlkerRQ6+bXw=";
21 rustPlatform.buildRustPackage {
25 cargoHash = "sha256-vrzcNdLY2PkyZ1eLwOiONRHVAolbTDxytEgi09WkDZQ=";
27 nativeCheckInputs = [ gitMinimal ];
29 patchShebangs tests/editor/fake_editor.sh
37 wrapProgram $out/bin/git-gamble \
38 --prefix PATH : "${lib.makeBinPath [ gitMinimal ]}"
40 export PATH="$PATH:$out/bin/"
42 sh ./script/generate_completion.sh target/release/shell_completions/
43 installShellCompletion --cmd git-gamble \
44 --bash target/release/shell_completions/git-gamble.bash \
45 --fish target/release/shell_completions/git-gamble.fish \
46 --zsh target/release/shell_completions/_git-gamble
48 sh ./script/usage.sh > git-gamble.1
49 installManPage git-gamble.1
52 passthru.updateScript = nix-update-script { };
55 description = "Tool that blends TDD (Test Driven Development) + TCR (`test && commit || revert`)";
56 homepage = "https://git-gamble.is-cool.dev";
57 changelog = "https://gitlab.com/pinage404/git-gamble/-/blob/${src.rev}/CHANGELOG.md";
58 license = lib.licenses.isc;
59 sourceProvenance = [ lib.sourceTypes.fromSource ];
60 maintainers = [ lib.maintainers.pinage404 ];
61 mainProgram = "git-gamble";