Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
jujutsu,
|
|
versionCheckHook,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "lazyjj";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cretezy";
|
|
repo = "lazyjj";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-xpRuXefP2agcZojvAUvODDOFJoEyTiMztJM3VNCeryA=";
|
|
};
|
|
|
|
cargoHash = "sha256-LLbMR3FT5Ci7A9TlhRtU0rpMilXZXb4DH85/R776OQY=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
nativeCheckInputs = [
|
|
jujutsu
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/lazyjj \
|
|
--prefix PATH : ${lib.makeBinPath [ jujutsu ]}
|
|
'';
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "TUI for Jujutsu/jj";
|
|
homepage = "https://github.com/Cretezy/lazyjj";
|
|
changelog = "https://github.com/Cretezy/lazyjj/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "lazyjj";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
colemickens
|
|
GaetanLepage
|
|
];
|
|
};
|
|
})
|