dysk: install man page and shell completions
This commit is contained in:
parent
3790f40a40
commit
51aae8647b
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -16,6 +17,15 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoHash = "sha256-YmA1Qx3oKHXlXs3FWoLMRAnFdIQaFdLJaNwj/FxIS5Q=";
|
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; {
|
meta = with lib; {
|
||||||
description = "Get information on your mounted disks";
|
description = "Get information on your mounted disks";
|
||||||
homepage = "https://github.com/Canop/dysk";
|
homepage = "https://github.com/Canop/dysk";
|
||||||
|
Loading…
Reference in New Issue
Block a user