1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "swapview";
5 version = "0.1.0";
6
7 src = fetchFromGitHub {
8 owner = "lilydjwg";
9 repo = "swapview";
10 rev = "v${version}";
11 sha256 = "0339biydk997j5r72vzp7djwkscsz89xr3936nshv23fmxjh2rzj";
12 };
13
14 cargoHash = "sha256-v3Fd08s70YX7pEIWYcgpC2daerfZhtzth4haKfUy0Q8=";
15
16 meta = with lib; {
17 description = "Simple program to view processes' swap usage on Linux";
18 mainProgram = "swapview";
19 homepage = "https://github.com/lilydjwg/swapview";
20 platforms = platforms.linux;
21 license = with licenses; [ bsd3 ];
22 maintainers = with maintainers; [ oxalica ];
23 };
24}