dotfiles/pkgs/lazyjj/default.nix

31 lines
645 B
Nix
Raw Permalink Normal View History

2024-08-02 11:12:36 +02:00
{
stdenvNoCC,
fetchzip,
2024-09-29 20:47:52 +02:00
}:
let
version = "0.3.1";
2024-08-02 11:12:36 +02:00
in
2024-09-29 20:47:52 +02:00
stdenvNoCC.mkDerivation {
name = "lazyjj";
inherit version;
2024-08-02 11:12:36 +02:00
2024-09-29 20:47:52 +02:00
src = fetchzip {
url = "https://github.com/Cretezy/lazyjj/releases/download/v0.3.1/lazyjj-v0.3.1-x86_64-unknown-linux-musl.tar.gz";
hash = "sha256-6R4W6uyq8sns8WLoJxp06xAYaJ0Zn+pZLtwhVIPobmc=";
};
2024-08-02 11:12:36 +02:00
2024-09-29 20:47:52 +02:00
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 -D $src/lazyjj $out/bin/lazyjj
runHook postInstall
'';
2024-08-02 11:12:36 +02:00
2024-09-29 20:47:52 +02:00
meta = {
homepage = "https://github.com/Cretezy/lazyjj";
description = "TUI for jj";
mainProgram = "lazyjj";
platforms = [ "x86_64-linux" ];
};
}