dysk: install man page and shell completions
This commit is contained in:
parent
3790f40a40
commit
51aae8647b
1 changed files with 10 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue