15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-EUoJHM0Jm0uFKFeHhtzon/ZRC615SHfYa1gr4RnCNBw=";
26 cargoHash = "sha256-rI3pa0dvC/OVJz8gzD1bM0Q+8OWwvGj+jGDEMSbSb2I=";
28 env.OPENSSL_NO_VENDOR = 1;
30 # Workaround for https://github.com/zellij-org/zellij/issues/3720
32 substituteInPlace zellij-utils/Cargo.toml \
33 --replace-fail 'isahc = "1.7.2"' 'isahc = { version = "1.7.2", default-features = false, features = ["http2", "text-decoding"] }'
52 # Ensure that we don't vendor curl, but instead link against the libcurl from nixpkgs
53 doInstallCheck = stdenv.hostPlatform.libc == "glibc";
54 installCheckPhase = ''
55 runHook preInstallCheck
57 ldd "$out/bin/zellij" | grep libcurl.so
59 runHook postInstallCheck
64 mandown docs/MANPAGE.md > zellij.1
65 installManPage zellij.1
68 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
69 installShellCompletion --cmd $pname \
70 --bash <($out/bin/zellij setup --generate-completion bash) \
71 --fish <($out/bin/zellij setup --generate-completion fish) \
72 --zsh <($out/bin/zellij setup --generate-completion zsh)
75 passthru.tests.version = testers.testVersion { package = zellij; };
78 description = "Terminal workspace with batteries included";
79 homepage = "https://zellij.dev/";
80 changelog = "https://github.com/zellij-org/zellij/blob/v${version}/CHANGELOG.md";
81 license = with licenses; [ mit ];
82 maintainers = with maintainers; [
88 mainProgram = "zellij";