mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #335980 from colemickens/colemickens/lazyjj-init
lazyjj: init at 0.3.1
This commit is contained in:
commit
cc2b6943cd
41
pkgs/by-name/la/lazyjj/package.nix
Normal file
41
pkgs/by-name/la/lazyjj/package.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
jujutsu,
|
||||
rustPlatform,
|
||||
testers,
|
||||
lazyjj,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "lazyjj";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Cretezy";
|
||||
repo = "lazyjj";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-VlGmOdF/XsrZ/9vQ14UuK96LIK8NIkPZk4G4mbS8brg=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-TAq9FufGsNVsmqCE41REltYRSSLihWJwTMoj0bTxdFc=";
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/lazyjj \
|
||||
--prefix PATH : ${lib.makeBinPath [ jujutsu ]}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
nativeCheckInputs = [ jujutsu ];
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = lazyjj; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "TUI for Jujutsu/jj";
|
||||
homepage = "https://github.com/Cretezy/lazyjj";
|
||||
mainProgram = "lazyjj";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ colemickens ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user