mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
octorus: 0.3.5 -> 0.7.2 (#564116)
This commit is contained in:
@@ -2,23 +2,45 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
writableTmpDirAsHomeHook,
|
||||
gitMinimal,
|
||||
gh,
|
||||
makeWrapper,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "octorus";
|
||||
version = "0.3.5";
|
||||
version = "0.7.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ushironoko";
|
||||
repo = "octorus";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-xVbLh1fe+59KxcZOtCoSAh6O+VdhAyBSGCPP3UZLidA=";
|
||||
hash = "sha256-qwWCH/Yu9idxaOMNMlSM/RTJgSkpFSyV8VcmnK7DTqI=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-mOHjNQWeEcoBS4OhPj5RRja+b1PCPAeOM49t7OUtx1s=";
|
||||
cargoHash = "sha256-wFPeBzbR+/n4gd0y15ToN2XRfsxsCu9if+XT6UTa1GI=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
gitMinimal
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/or \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
gh
|
||||
gitMinimal
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "TUI PR review tool for GitHub";
|
||||
@@ -27,7 +49,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
matthiasbeyer
|
||||
kangazero
|
||||
];
|
||||
mainProgram = "octorus";
|
||||
mainProgram = "or";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user