diff --git a/pkgs/by-name/oc/octorus/package.nix b/pkgs/by-name/oc/octorus/package.nix new file mode 100644 index 000000000000..d4b221ecabae --- /dev/null +++ b/pkgs/by-name/oc/octorus/package.nix @@ -0,0 +1,32 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + installShellFiles, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "octorus"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "ushironoko"; + repo = "octorus"; + rev = "v${finalAttrs.version}"; + hash = "sha256-20HVES8XgZEgKIijTzo9rV5IRfhyZlY1noX6yHSUf8g="; + }; + + cargoHash = "sha256-4HHl3SIXqfWOeKFmGqXLTC9veglMAFo1MLJIR/BYr0M="; + + nativeBuildInputs = [ installShellFiles ]; + + meta = { + description = "TUI PR review tool for GitHub"; + homepage = "https://github.com/ushironoko/octorus"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + matthiasbeyer + ]; + mainProgram = "octorus"; + }; +})