depot/third_party/nixpkgs/pkgs/tools/filesystems/dysk/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

36 lines
875 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "dysk";
version = "2.8.0";
src = fetchFromGitHub {
owner = "Canop";
repo = "dysk";
rev = "v${version}";
hash = "sha256-BbL7liiZ1Xcg2Pr2JDnP5DAbjVdDVRs/hndZyIX8jfQ=";
};
cargoHash = "sha256-vMWr3cV1ttjjwBvgQgi3aCpejr/enoYILVhI4wP9wa0=";
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";
changelog = "https://github.com/Canop/dysk/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda koral ];
};
}