diff options
author | Svend Sorensen <svend@ciffer.net> | 2015-11-18 10:31:14 -0800 |
---|---|---|
committer | Svend Sorensen <svend@ciffer.net> | 2015-11-18 10:35:07 -0800 |
commit | 95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8 (patch) | |
tree | 67e0be1217668640511efcce736d0326bb6266c3 /pkgs | |
parent | 3087ef37bb35a2382c6d70829d406ab640f54c37 (diff) | |
download | nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar.gz nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar.bz2 nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar.lz nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar.xz nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.tar.zst nixlib-95282e3cfc8f9e1173ff1ea2821442da2e6f7fa8.zip |
ipmitool: Fix build on darwin
s6_addr16 is not available on Mac OS X.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/system/ipmitool/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/system/ipmitool/default.nix b/pkgs/tools/system/ipmitool/default.nix index 987648e69af5..930778fe573f 100644 --- a/pkgs/tools/system/ipmitool/default.nix +++ b/pkgs/tools/system/ipmitool/default.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation { sha256 = "0y6g8xg9p854n7xm3kds8m3d53jrsllnknp8lcr3jscf99j4x5ph"; }; + patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace src/plugins/ipmi_intf.c --replace "s6_addr16" "s6_addr" + ''; + buildInputs = [ openssl ]; preConfigure = '' |