diff options
author | Luke Adams <luke.adams@belljar.io> | 2017-12-31 19:16:21 -0600 |
---|---|---|
committer | Luke Adams <luke.adams@belljar.io> | 2017-12-31 19:16:21 -0600 |
commit | f9449773873020cee39e0d6991e958ea130108a3 (patch) | |
tree | 4a1e122c83b0a5ffd11cbdf5d3065ed7a05f4d13 /pkgs/applications/misc/airspy | |
parent | a8d515add59ba9730209cc401a69b07d731de9ae (diff) | |
download | nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar.gz nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar.bz2 nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar.lz nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar.xz nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.tar.zst nixpkgs-f9449773873020cee39e0d6991e958ea130108a3.zip |
airspy: enable Darwin building
improves #32378 which disabled gnuradio-osmosdr on darwin
Diffstat (limited to 'pkgs/applications/misc/airspy')
-rw-r--r-- | pkgs/applications/misc/airspy/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/applications/misc/airspy/default.nix b/pkgs/applications/misc/airspy/default.nix index 211e8fd0541..c015a701ab0 100644 --- a/pkgs/applications/misc/airspy/default.nix +++ b/pkgs/applications/misc/airspy/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub +{ stdenv, lib, fetchFromGitHub , cmake , pkgconfig, libusb }: @@ -22,13 +22,14 @@ in nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ libusb ]; - cmakeFlags = [ "-DINSTALL_UDEV_RULES=ON" ]; + cmakeFlags = + lib.optionals stdenv.isLinux [ "-DINSTALL_UDEV_RULES=ON" ]; meta = with stdenv.lib; { homepage = http://github.com/airspy/airspyone_host; description = "Host tools and driver library for the AirSpy SDR"; license = licenses.free; - platforms = platforms.linux; + platforms = with platforms; linux ++ darwin; maintainers = with maintainers; [ markuskowa ]; }; } |