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