about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libstatgrab/default.nix
blob: d2a94d7168a8dd0d50a1903e5843eb546a8319a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
  };
}