diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-12 00:11:24 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-16 19:25:46 +0000 |
commit | c92227f5cc223f1d424fa4aa4feda120b66f21eb (patch) | |
tree | 6d4b32fd227fcb0dcf710ce8a242765cd4ba7c75 /pkgs/tools/system/smartmontools/default.nix | |
parent | 20e86e1282520bdbf3c9f796229d211e36f3e09e (diff) | |
download | nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar.gz nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar.bz2 nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar.lz nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar.xz nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.tar.zst nixlib-c92227f5cc223f1d424fa4aa4feda120b66f21eb.zip |
smartmontools: fix darwin build
needs IOKit
Diffstat (limited to 'pkgs/tools/system/smartmontools/default.nix')
-rw-r--r-- | pkgs/tools/system/smartmontools/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 8445767e7b78..cc30cd7a4881 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -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 |