blob: ec2f05a4743cca860563c2b9b6e95d6add75fdcc (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "dysk";
version = "2.10.0";
src = fetchFromGitHub {
owner = "Canop";
repo = "dysk";
rev = "v${version}";
hash = "sha256-VJFcdxwj+038d9oj178e0uGQQyKF9JbDytxDmit2tiA=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-vVU10Mj+dRIAOREQiGIO0S+mDBeLtM5v0KjmmoCn3/g=";
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";
platforms = platforms.linux;
};
}
|