Skip to content

Commit

Permalink
zellij: format
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp committed Nov 7, 2024
1 parent 10c96e2 commit b00e0d4
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions pkgs/by-name/ze/zellij/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, installShellFiles
, pkg-config
, curl
, openssl
, mandown
, zellij
, testers
{
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
installShellFiles,
pkg-config,
curl,
openssl,
mandown,
zellij,
testers,
}:

rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -58,16 +59,18 @@ rustPlatform.buildRustPackage rec {
runHook postInstallCheck
'';

postInstall = ''
mandown docs/MANPAGE.md > zellij.1
installManPage zellij.1
postInstall =
''
mandown docs/MANPAGE.md > zellij.1
installManPage zellij.1
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
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)
'';
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
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 = testers.testVersion { package = zellij; };

Expand All @@ -76,7 +79,12 @@ rustPlatform.buildRustPackage rec {
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 pyrox0 ];
maintainers = with maintainers; [
therealansh
_0x4A6F
abbe
pyrox0
];
mainProgram = "zellij";
};
}

0 comments on commit b00e0d4

Please sign in to comment.