Unverified Commit b00e0d4b authored by r-vdp's avatar r-vdp
Browse files

zellij: format

parent 10c96e20
Loading
Loading
Loading
Loading
+29 −21
Original line number Diff line number Diff line
{ 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,11 +59,13 @@ rustPlatform.buildRustPackage rec {
    runHook postInstallCheck
  '';

  postInstall = ''
  postInstall =
    ''
      mandown docs/MANPAGE.md > zellij.1
      installManPage zellij.1

  '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    ''
    + 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) \
@@ -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";
  };
}