nixos-config/pkgs/lazyjj/default.nix

32 lines
817 B
Nix
Raw Normal View History

2025-01-15 06:00:12 +00:00
{ lib, rustPlatform, fetchFromGitHub, jujutsu, }:
2024-08-25 11:08:52 +00:00
2025-01-15 06:00:12 +00:00
let version = "0.3.1";
in rustPlatform.buildRustPackage {
2024-08-25 11:08:52 +00:00
inherit version;
pname = "lazyjj";
src = fetchFromGitHub {
owner = "Cretezy";
repo = "lazyjj";
rev = "v${version}";
hash = "sha256-VlGmOdF/XsrZ/9vQ14UuK96LIK8NIkPZk4G4mbS8brg=";
};
cargoHash = "sha256-TAq9FufGsNVsmqCE41REltYRSSLihWJwTMoj0bTxdFc=";
# I have no clue how to properly make these tests pass so NO for now.
doCheck = false;
preCheck = ''
export HOME=$TMPDIR
'';
checkInputs = [ jujutsu ];
meta = with lib; {
homepage = "https://github.com/Cretezy/lazyjj";
description = "lazygit-inspired user interface for Jujutsu VCS";
license = licenses.apsl20;
maintainers = with maintainers; [ foo-dogsquared ];
mainProgram = "lazyjj";
};
}