9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-s03h+3EfC5c7yRYBM6aCRWtmstwRJWuBywuyVt+k/bk=";
21 substituteInPlace CMakeLists.txt \
22 --replace '/etc/udev/rules.d' "$out/etc/udev/rules.d"
24 substituteInPlace rtl-sdr.rules \
25 --replace 'MODE:="0666"' 'ENV{ID_SOFTWARE_RADIO}="1", MODE="0660", GROUP="plugdev"'
28 nativeBuildInputs = [ pkg-config cmake ];
30 propagatedBuildInputs = [ libusb1 ];
33 description = "Turns your Realtek RTL2832 based DVB dongle into a SDR receiver";
34 homepage = "https://github.com/librtlsdr/librtlsdr";
35 license = licenses.gpl2Plus;
36 maintainers = with maintainers; [ bjornfor ];
37 platforms = platforms.linux ++ platforms.darwin;