about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libstatgrab
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libstatgrab')
-rw-r--r--nixpkgs/pkgs/development/libraries/libstatgrab/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libstatgrab/default.nix b/nixpkgs/pkgs/development/libraries/libstatgrab/default.nix
new file mode 100644
index 000000000000..d2a94d7168a8
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libstatgrab/default.nix
@@ -0,0 +1,25 @@
+{ lib
+, stdenv
+, fetchurl
+, IOKit
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libstatgrab";
+  version = "0.92.1";
+
+  src = fetchurl {
+    url = "https://ftp.i-scream.org/pub/i-scream/libstatgrab/${pname}-${version}.tar.gz";
+    sha256 = "sha256-VoiqSmhVR9cXSoo3PqnY7pJ+dm48wwK97jRSPCxdbBE=";
+  };
+
+  buildInputs = lib.optional stdenv.isDarwin IOKit;
+
+  meta = with lib; {
+    homepage = "https://www.i-scream.org/libstatgrab/";
+    description = "A library that provides cross platforms access to statistics about the running system";
+    maintainers = with maintainers; [ ];
+    license = licenses.gpl2;
+    platforms = platforms.unix;
+  };
+}