2021-04-21 20:23:17 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, stdenv, installShellFiles, libiconv }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zellij";
|
2021-05-05 20:02:44 +01:00
|
|
|
version = "0.8.0";
|
2021-04-21 20:23:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zellij-org";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-05 20:02:44 +01:00
|
|
|
sha256 = "sha256-armEkYiRQ2RvKFUtNlnMejkNSLJOEQpFzUPduNJatMo=";
|
2021-04-21 20:23:17 +01:00
|
|
|
};
|
|
|
|
|
2021-05-05 20:02:44 +01:00
|
|
|
cargoSha256 = "sha256-68UfDlQ1KuGZwcuSNeOCwULxS+Ei16lEydrO4CssD3Y=";
|
2021-04-21 20:23:17 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-04-29 19:50:26 +01:00
|
|
|
installShellCompletion --cmd $pname \
|
|
|
|
--bash <($out/bin/zellij generate-completion bash) \
|
|
|
|
--fish <($out/bin/zellij generate-completion fish) \
|
|
|
|
--zsh <($out/bin/zellij generate-completion zsh)
|
2021-04-21 20:23:17 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal workspace with batteries included";
|
|
|
|
homepage = "https://zellij.dev/";
|
|
|
|
license = with licenses; [ mit ];
|
2011-04-30 07:23:14 +01:00
|
|
|
maintainers = with maintainers; [ therealansh _0x4A6F ];
|
2021-04-21 20:23:17 +01:00
|
|
|
};
|
|
|
|
}
|