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