libstatgrab: fix darwin build

Darwin needs IOKit to work.
This commit is contained in:
Matthew Bauer 2016-08-11 22:42:42 -05:00
parent de914d0190
commit 3182e52fdd
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl
, IOKit ? null }:
stdenv.mkDerivation rec {
name = "libstatgrab-0.91";
@ -8,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1azinx2yzs442ycwq6p15skl3mscmqj7fd5hq7fckhjp92735s83";
};
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
meta = with stdenv.lib; {
homepage = http://www.i-scream.org/libstatgrab/;
description = "A library that provides cross platforms access to statistics about the running system";

View File

@ -8489,7 +8489,9 @@ in
libspatialite = callPackage ../development/libraries/libspatialite { };
libstatgrab = callPackage ../development/libraries/libstatgrab { };
libstatgrab = callPackage ../development/libraries/libstatgrab {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
libsvm = callPackage ../development/libraries/libsvm { };