3
0
Fork 0
forked from mirrors/nixpkgs

smartmontools: fix darwin build

needs IOKit
This commit is contained in:
Matthew Bauer 2016-08-12 00:11:24 -05:00
parent 20e86e1282
commit c92227f5cc
2 changed files with 7 additions and 2 deletions

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

View file

@ -3498,7 +3498,9 @@ in
slsnif = callPackage ../tools/misc/slsnif { };
smartmontools = callPackage ../tools/system/smartmontools { };
smartmontools = callPackage ../tools/system/smartmontools {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
smbldaptools = callPackage ../tools/networking/smbldaptools {
inherit (perlPackages) NetLDAP CryptSmbHash DigestSHA1;