11 stdenv.mkDerivation (finalAttrs: {
12 pname = "rtl_fm_streamer";
13 version = "unstable-2021-06-08";
15 src = fetchFromGitHub {
17 repo = "rtl_fm_streamer";
18 rev = "ceb2bf06883f986ed01aa57c84989ba35b6b9a27";
19 hash = "sha256-9M7GS6AC7HEJge04vl7V6ZdtwWvbMu/Rhaf9fwQa9WA=";
23 substituteInPlace CMakeLists.txt \
24 --replace '/etc/udev/rules.d' "$out/etc/udev/rules.d"
26 substituteInPlace rtl-sdr.rules \
27 --replace 'MODE:="0666"' 'ENV{ID_SOFTWARE_RADIO}="1", MODE="0660", GROUP="plugdev"'
41 (lib.cmakeBool "INSTALL_UDEV_RULES" stdenv.hostPlatform.isLinux)
45 description = "Turns your Realtek RTL2832 based DVB dongle into a FM radio stereo receiver";
46 homepage = "https://github.com/AlbrechtL/rtl_fm_streamer";
47 license = lib.licenses.gpl2Plus;
48 maintainers = with lib.maintainers; [ doronbehar ];
49 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;