1{
2 git,
3 lib,
4 libgit2,
5 rustPlatform,
6 stdenv,
7 fetchFromGitHub,
8}:
9let
10 inherit (lib)
11 licenses
12 maintainers
13 ;
14
15 version = "0.2.7";
16in
17rustPlatform.buildRustPackage {
18 pname = "git-instafix";
19 inherit version;
20
21 src = fetchFromGitHub {
22 owner = "quodlibetor";
23 repo = "git-instafix";
24 rev = "v${version}";
25 hash = "sha256-Uz+KQ8cQT3v97EtmbAv2II30dUrFD0hMo/GhnqcdBOs=";
26 };
27
28 cargoHash = "sha256-B0XTk0KxA60AuaS6eO3zF/eA/cTcLwA31ipG4VjvO8Q=";
29
30 buildInputs = [ libgit2 ];
31 nativeCheckInputs = [ git ];
32
33 meta = {
34 description = "Quickly fix up an old commit using your currently-staged changes";
35 mainProgram = "git-instafix";
36 homepage = "https://github.com/quodlibetor/git-instafix";
37 license = with licenses; [
38 mit
39 asl20
40 ];
41 maintainers = with maintainers; [
42 mightyiam
43 quodlibetor
44 ];
45 changelog = "https://github.com/quodlibetor/git-instafix/releases/tag/v${version}";
46 broken = stdenv.hostPlatform.isDarwin;
47 };
48}