summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/oy/oyui/package.nix
blob: 1cb665f30ebcb1267745f285411f8166ad19ebe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  __structuredAttrs = true;

  pname = "oyui";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "emilien-jegou";
    repo = "oyui";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Z69mBOZFHqslZLC2WutvkhcydxAmO9pppapJSTeHtiA=";
  };

  cargoHash = "sha256-3XzTbrEDFzCf2rsvJu/foiDYEoO4lLMsr+4t9nDYv34=";

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

  meta = {
    description = "Modern TUI merge tool and interactive diff editor for Jujutsu (jj) and Git";
    homepage = "https://github.com/emilien-jegou/oyui";
    changelog = "https://github.com/emilien-jegou/oyui/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [
      adda
    ];
    mainProgram = "oyui";
  };
})