159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
37 lines
901 B
Nix
37 lines
901 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "dysk";
|
|
version = "2.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Canop";
|
|
repo = "dysk";
|
|
rev = "v${version}";
|
|
hash = "sha256-PGl2pUeLPznut/ETJdaQlin9thDBPvqBE30cgXwV+KM=";
|
|
};
|
|
|
|
cargoHash = "sha256-ppOAQ6Y9GJNLwGbbg1qfQ7ArVKiYxt26oEEWMOjbu0w=";
|
|
|
|
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 ];
|
|
mainProgram = "dysk";
|
|
};
|
|
}
|