From 3182e52fdde1f94d3d9b5b457147260c995cf169 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 11 Aug 2016 22:42:42 -0500 Subject: [PATCH] libstatgrab: fix darwin build Darwin needs IOKit to work. --- pkgs/development/libraries/libstatgrab/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libstatgrab/default.nix b/pkgs/development/libraries/libstatgrab/default.nix index 8ffb8f8bde9..036bb806f68 100644 --- a/pkgs/development/libraries/libstatgrab/default.nix +++ b/pkgs/development/libraries/libstatgrab/default.nix @@ -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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d0c6aefe54b..16f4053051b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };