2021-06-29 23:16:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, IOKit
|
|
|
|
}:
|
2014-10-08 08:27:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "libstatgrab";
|
2021-12-09 17:30:03 +00:00
|
|
|
version = "0.92.1";
|
2014-10-08 08:27:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 13:21:29 +00:00
|
|
|
url = "https://ftp.i-scream.org/pub/i-scream/libstatgrab/${pname}-${version}.tar.gz";
|
2021-12-09 17:30:03 +00:00
|
|
|
sha256 = "sha256-VoiqSmhVR9cXSoo3PqnY7pJ+dm48wwK97jRSPCxdbBE=";
|
2014-10-08 08:27:15 +00:00
|
|
|
};
|
|
|
|
|
2021-06-29 23:16:23 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin IOKit;
|
2016-08-12 03:42:42 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.i-scream.org/libstatgrab/";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A library that provides cross platforms access to statistics about the running system";
|
2021-06-29 23:16:23 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-10-08 08:27:15 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|