smartmontools: fix darwin build

needs IOKit
This commit is contained in:
Matthew Bauer
2016-08-16 19:25:46 +00:00
parent 20e86e1282
commit c92227f5cc
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl
, IOKit ? null }:
let
version = "6.4";
@@ -18,6 +19,8 @@ stdenv.mkDerivation rec {
sha256 = "11bsxcghh7adzdklcslamlynydxb708vfz892d5w7agdq405ddza";
};
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
patchPhase = ''
cp ${driverdb} drivedb.h
sed -i -e 's@which which >/dev/null || exit 1@alias which="type -p"@' update-smart-drivedb.in