diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/zellij')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/zellij/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/zellij/default.nix b/nixpkgs/pkgs/tools/misc/zellij/default.nix new file mode 100644 index 000000000000..c7889b158735 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/zellij/default.nix @@ -0,0 +1,45 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, stdenv +, installShellFiles +, pkg-config +, libiconv +, openssl +}: + +rustPlatform.buildRustPackage rec { + pname = "zellij"; + version = "0.15.0"; + + src = fetchFromGitHub { + owner = "zellij-org"; + repo = "zellij"; + rev = "v${version}"; + sha256 = "sha256-IcpCE9mqR7H1+gRhHyscvXhYHOynJFtOyrSr1FiMxFc="; + }; + + cargoSha256 = "sha256-22ggPs4iVOI1LKHtW5skfSO7J/FLF8EinvcyHVO14Dw="; + + 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 ]; + }; +} |