5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
36 lines
875 B
Nix
36 lines
875 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "dysk";
|
|
version = "2.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Canop";
|
|
repo = "dysk";
|
|
rev = "v${version}";
|
|
hash = "sha256-3uukeuxB1GjmJ59bkgDEzgG9RMZhmB5TSv3uiXV8GNg=";
|
|
};
|
|
|
|
cargoHash = "sha256-td4B9/DAmASqLGO3PVLLWeO3GeDbLHI7wNcOT1qk20k=";
|
|
|
|
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 ];
|
|
};
|
|
}
|