diff options
author | Jiajie Chen <c@jia.je> | 2022-10-26 01:12:46 +0800 |
---|---|---|
committer | Jiajie Chen <c@jia.je> | 2022-10-26 21:28:56 +0800 |
commit | d33f9be4c70810ccb621fd073f513862e1f0a2f0 (patch) | |
tree | a351d9d57b2fc99d5c817c150fc61875da2b6363 /pkgs/development/libraries/libad9361 | |
parent | a4fc59a4771d14088e531143086d1b26047574c1 (diff) |
libad9361: unbreak on darwin
Diffstat (limited to 'pkgs/development/libraries/libad9361')
-rw-r--r-- | pkgs/development/libraries/libad9361/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libad9361/default.nix b/pkgs/development/libraries/libad9361/default.nix index 74707897bd0ca..115f37161553b 100644 --- a/pkgs/development/libraries/libad9361/default.nix +++ b/pkgs/development/libraries/libad9361/default.nix @@ -15,11 +15,19 @@ stdenv.mkDerivation rec { buildInputs = [ libiio ]; + postPatch = lib.optionalString stdenv.isDarwin '' + # Fix iio include path on darwin to match linux + for i in test/*.c; do + substituteInPlace $i \ + --replace 'iio/iio.h' 'iio.h' + done + ''; + meta = with lib; { description = "IIO AD9361 library for filter design and handling, multi-chip sync, etc"; homepage = "http://analogdevicesinc.github.io/libad9361-iio/"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ sikmir ]; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; }; } |