1{ lib
2, stdenv
3, fetchurl
4, IOKit
5}:
6
7stdenv.mkDerivation rec {
8 pname = "libstatgrab";
9 version = "0.92.1";
10
11 src = fetchurl {
12 url = "https://ftp.i-scream.org/pub/i-scream/libstatgrab/${pname}-${version}.tar.gz";
13 sha256 = "sha256-VoiqSmhVR9cXSoo3PqnY7pJ+dm48wwK97jRSPCxdbBE=";
14 };
15
16 buildInputs = lib.optional stdenv.isDarwin IOKit;
17
18 meta = with lib; {
19 homepage = "https://www.i-scream.org/libstatgrab/";
20 description = "A library that provides cross platforms access to statistics about the running system";
21 maintainers = with maintainers; [ ];
22 license = licenses.gpl2;
23 platforms = platforms.unix;
24 };
25}