8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, stdenv
|
|
, installShellFiles
|
|
, pkg-config
|
|
, libiconv
|
|
, openssl
|
|
, DiskArbitration
|
|
, Foundation
|
|
, mandown
|
|
, zellij
|
|
, testVersion
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "zellij";
|
|
version = "0.26.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zellij-org";
|
|
repo = "zellij";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ngCE1DhbbuOu07R69gSlFvDKl5EFtTGOkfr5e4u4Dkw=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-lRnxZiJiq601oOXkxZqVNPXc0miK3TsAyGeVTjTxdhw=";
|
|
|
|
nativeBuildInputs = [
|
|
mandown
|
|
installShellFiles
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
libiconv
|
|
DiskArbitration
|
|
Foundation
|
|
];
|
|
|
|
preCheck = ''
|
|
HOME=$TMPDIR
|
|
'';
|
|
|
|
postInstall = ''
|
|
mandown docs/MANPAGE.md > zellij.1
|
|
installManPage zellij.1
|
|
|
|
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)
|
|
'';
|
|
|
|
passthru.tests.version = testVersion { package = zellij; };
|
|
|
|
meta = with lib; {
|
|
description = "A terminal workspace with batteries included";
|
|
homepage = "https://zellij.dev/";
|
|
changelog = "https://github.com/zellij-org/zellij/blob/v${version}/Changelog.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ therealansh _0x4A6F abbe ];
|
|
};
|
|
}
|