From b00e0d4b1d2793a1b73734116adeee2660144d53 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Thu, 7 Nov 2024 10:10:38 +0100 Subject: [PATCH] zellij: format --- pkgs/by-name/ze/zellij/package.nix | 50 +++++++++++++++++------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/ze/zellij/package.nix b/pkgs/by-name/ze/zellij/package.nix index adc720ec3f661..5d7b348bc1f86 100644 --- a/pkgs/by-name/ze/zellij/package.nix +++ b/pkgs/by-name/ze/zellij/package.nix @@ -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 { @@ -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; }; @@ -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"; }; }