forked from mirrors/nixpkgs
smartmontools: fix darwin build
needs IOKit
This commit is contained in:
parent
20e86e1282
commit
c92227f5cc
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue