about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJustin Restivo <justin@restivo.me>2024-06-25 15:02:25 -0400
committerJustin Restivo <justin@restivo.me>2024-06-25 20:07:39 -0400
commit5377ecc7a7afc0f0cd46268b1094dfc845615c44 (patch)
tree363384c28bd47703edcbea456ef4b20ca1ad51a0
parenta6840531949221f1adc032728d4ada45a6399b9b (diff)
nix-btm: init at 0.2.0
-rw-r--r--pkgs/by-name/ni/nix-btm/package.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/by-name/ni/nix-btm/package.nix b/pkgs/by-name/ni/nix-btm/package.nix
new file mode 100644
index 0000000000000..42496a5bff030
--- /dev/null
+++ b/pkgs/by-name/ni/nix-btm/package.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, rustPlatform, fetchCrate, darwin }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "nix-btm";
+  version = "0.2.0";
+
+  src = fetchCrate {
+    inherit version;
+    pname = "nix-btm";
+    hash = "sha256-f8XFWlx+gwhF/OD8+tPcLGV/v0QnsDWOcqpY3Js+FAo=";
+  };
+
+  cargoHash = "sha256-qUZ3zJjQrteFQerBKFH/+Ys0uOzvI7DH9rCaVtseJMM=";
+
+  buildInputs = lib.optionals stdenv.isDarwin
+    (with darwin.apple_sdk.frameworks; [ CoreServices SystemConfiguration ]);
+
+  meta = with lib; {
+    description = "Rust tool to monitor Nix processes";
+    homepage = "https://github.com/DieracDelta/nix-btm";
+    license = licenses.mit;
+    maintainers = with maintainers; [ DieracDelta ];
+  };
+}