diff --git a/pkgs/tools/filesystems/dysk/default.nix b/pkgs/tools/filesystems/dysk/default.nix index 6e9af03fdb93..c1e7f5b2332d 100644 --- a/pkgs/tools/filesystems/dysk/default.nix +++ b/pkgs/tools/filesystems/dysk/default.nix @@ -1,20 +1,30 @@ { lib , rustPlatform , fetchFromGitHub +, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "dysk"; - version = "2.6.1"; + version = "2.7.1"; src = fetchFromGitHub { owner = "Canop"; repo = "dysk"; rev = "v${version}"; - hash = "sha256-rSnj38U4Rt5Wh+3A610tTeT2Q1BVGvpMa7rpDf4YzTI="; + hash = "sha256-5KUTb2mSYQdkT3K5BrBCQqq45q0MzFYG1UmE+5eBnuc="; }; - cargoHash = "sha256-or1vLbtA2tPnGJ3tYWrmaXmPCIutojBlIWMLRNpxpY4="; + 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";