620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, stdenv
|
|
, installShellFiles
|
|
, pkg-config
|
|
, libiconv
|
|
, openssl
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "zellij";
|
|
version = "0.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zellij-org";
|
|
repo = "zellij";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/1ngmthzWp9K7pBBOBiSMUv0yC66K3Tg2g2PoBskpTU=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-eFWsqjXO6QFTO26ppZ4tiJXc/PEYD+5ZdbTBMoDoLFI=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
preCheck = ''
|
|
HOME=$TMPDIR
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd $pname \
|
|
--bash <($out/bin/zellij setup --generate-completion bash) \
|
|
--fish <($out/bin/zellij setup --generate-completion fish) \
|
|
--zsh <($out/bin/zellij setup --generate-completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A terminal workspace with batteries included";
|
|
homepage = "https://zellij.dev/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ therealansh _0x4A6F ];
|
|
};
|
|
}
|