zoxide: install manpages

This commit is contained in:
Mario Rodas 2021-05-01 20:33:00 -05:00
parent c116c5f89f
commit ab92ec63d2

View file

@ -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 ];
};