blazingjj: init at 0.8.0 (#520367)
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
makeBinaryWrapper,
|
||||
jujutsu,
|
||||
versionCheckHook,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "blazingjj";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blazingjj";
|
||||
repo = "blazingjj";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-vefD93gzT6WEplpnYiENtzXLSeXBo+9K3/RYpSBafDs=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-E/xddxdvCDWH1xPn/CPXFyJIHg1Dy6EG3VZMZouWHQY=";
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jujutsu
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/blazingjj \
|
||||
--prefix PATH : ${lib.makeBinPath [ jujutsu ]}
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
meta = {
|
||||
description = "TUI for Jujutsu/jj";
|
||||
homepage = "https://github.com/blazingjj/blazingjj";
|
||||
changelog = "https://github.com/blazingjj/blazingjj/releases/tag/v${finalAttrs.version}";
|
||||
mainProgram = "blazingjj";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
peret
|
||||
];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user