Unverified Commit 20eba031 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

cyme: add shell completion and manpages (#388921)

parents 0495eb76 e26cf06e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  fetchFromGitHub,
  rustPlatform,
  pkg-config,
  installShellFiles,
  stdenv,
  darwin,
  versionCheckHook,
@@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
  nativeBuildInputs =
    [
      pkg-config
      installShellFiles
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      darwin.DarwinTools
@@ -39,6 +41,14 @@ rustPlatform.buildRustPackage rec {
    "--skip=test_run"
  ];

  postInstall = ''
    installManPage doc/cyme.1
    installShellCompletion --cmd cyme \
      --bash doc/cyme.bash \
      --fish doc/cyme.fish \
      --zsh doc/_cyme
  '';

  nativeInstallCheckInputs = [
    versionCheckHook
  ];