Merge pull request #121458 from marsam/zoxide-manpages
zoxide: install manpages
This commit is contained in:
commit
add895159e
|
@ -4,6 +4,7 @@
|
|||
, rustPlatform
|
||||
, withFzf ? true
|
||||
, fzf
|
||||
, installShellFiles
|
||||
, libiconv
|
||||
}:
|
||||
|
||||
|
@ -18,6 +19,8 @@ rustPlatform.buildRustPackage rec {
|
|||
sha256 = "sha256-yunKyCjJ/vWUcsodweLmxv0+QJQI2i5u5VIzp2U+VyU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
||||
|
||||
postPatch = lib.optionalString withFzf ''
|
||||
|
@ -27,9 +30,14 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "sha256-eoal6z4wX1pNdAJfdamJgOSFCvGWdbVlq1X+vD9lraE=";
|
||||
|
||||
postInstall = ''
|
||||
installManPage man/*
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A fast cd command that learns your habits";
|
||||
homepage = "https://github.com/ajeetdsouza/zoxide";
|
||||
changelog = "https://github.com/ajeetdsouza/zoxide/raw/v${version}/CHANGELOG.md";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ ysndr cole-h SuperSandro2000 ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue