dysk: install man page and shell completions

This commit is contained in:
figsoda 2023-07-16 21:31:30 -04:00
parent 3790f40a40
commit 51aae8647b

View file

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@ -16,6 +17,15 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-YmA1Qx3oKHXlXs3FWoLMRAnFdIQaFdLJaNwj/FxIS5Q=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage $releaseDir/build/*/out/dysk.1
installShellCompletion $releaseDir/build/*/out/{dysk.bash,dysk.fish,_dysk}
'';
meta = with lib; {
description = "Get information on your mounted disks";
homepage = "https://github.com/Canop/dysk";