about summary refs log tree commit diff
path: root/pkgs/tools/misc/ramfetch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/ramfetch/default.nix')
-rw-r--r--pkgs/tools/misc/ramfetch/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ramfetch/default.nix b/pkgs/tools/misc/ramfetch/default.nix
new file mode 100644
index 000000000000..a5708866d9fa
--- /dev/null
+++ b/pkgs/tools/misc/ramfetch/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, stdenv
+, fetchgit
+}:
+
+stdenv.mkDerivation rec {
+  name = "ramfetch";
+  version = "1.1.0";
+
+  src = fetchgit {
+    url = "https://codeberg.org/o69mar/ramfetch.git";
+    rev = "v${version}";
+    hash = "sha256-XUph+rTbw5LXWRq+OSKl0EjFac+MQAx3NBu4rWdWR3w=";
+  };
+
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+
+    install -D ramfetch $out/bin/ramfetch
+
+    runHook postInstall
+  '';
+
+  meta = {
+    description = "A tool which displays memory information";
+    homepage = "https://codeberg.org/o69mar/ramfetch";
+    platforms = lib.platforms.linux;
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.markbeep ];
+  };
+}