diff options
author | oxalica <oxalicc@pm.me> | 2020-06-01 15:37:34 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2020-07-15 20:26:50 +0800 |
commit | dea3f0c8414b7ea736ff70d85e9091ade1904027 (patch) | |
tree | 431bf3a1836ce77871be8d6ecf252afd4ebc94f4 /pkgs/os-specific/linux/swapview | |
parent | 5d1064a21269d0c0f138c7fdc028b60ca5b4396f (diff) |
swapview: init at 0.1.0
Diffstat (limited to 'pkgs/os-specific/linux/swapview')
-rw-r--r-- | pkgs/os-specific/linux/swapview/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/swapview/default.nix b/pkgs/os-specific/linux/swapview/default.nix new file mode 100644 index 0000000000000..c88c8757db3c0 --- /dev/null +++ b/pkgs/os-specific/linux/swapview/default.nix @@ -0,0 +1,23 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "swapview"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "lilydjwg"; + repo = "swapview"; + rev = "v${version}"; + sha256 = "0339biydk997j5r72vzp7djwkscsz89xr3936nshv23fmxjh2rzj"; + }; + + cargoSha256 = "0z99pqd41y8cci3yvwsnm5zbq7pzli62z8qqqghmz1hcq5pb5q7g"; + + meta = with lib; { + description = "A simple program to view processes' swap usage on Linux"; + homepage = "https://github.com/lilydjwg/swapview"; + platforms = platforms.linux; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ oxalica ]; + }; +} |