rtl-sdr: enable Darwin building; postInstall: only run on Linux

+2 -2
+2 -2
pkgs/applications/misc/rtl-sdr/default.nix
··· 18 18 # /etc/udev/rules.d/, and there is no option to install elsewhere. So install 19 19 # rules manually. 20 20 # * Propagate libusb-1.0 dependency in pkg-config file. 21 - postInstall = '' 21 + postInstall = stdenv.lib.optionalString stdenv.isLinux '' 22 22 mkdir -p "$out/etc/udev/rules.d/" 23 23 cp ../rtl-sdr.rules "$out/etc/udev/rules.d/99-rtl-sdr.rules" 24 24 ··· 31 31 description = "Turns your Realtek RTL2832 based DVB dongle into a SDR receiver"; 32 32 homepage = http://sdr.osmocom.org/trac/wiki/rtl-sdr; 33 33 license = licenses.gpl2Plus; 34 - platforms = platforms.linux; 34 + platforms = platforms.linux ++ platforms.darwin; 35 35 maintainers = [ maintainers.bjornfor ]; 36 36 }; 37 37 }