rtl-sdr: new package
rtl-sdr turns your Realtek RTL2832 based DVB dongle into a SDR receiver. http://sdr.osmocom.org/trac/wiki/rtl-sdr
This commit is contained in:
parent
8e1d765f61
commit
f0af1e7512
30
pkgs/applications/misc/rtl-sdr/default.nix
Normal file
30
pkgs/applications/misc/rtl-sdr/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchgit, cmake, pkgconfig, libusb1 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "rtl-sdr-${version}";
|
||||||
|
version = "0.5.3";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "git://git.osmocom.org/rtl-sdr.git";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
sha256 = "00r5d08r12zzkd0xggd7l7p4r2278rzdhqdaihwjlajmr9qd3hs1";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ cmake pkgconfig libusb1 ];
|
||||||
|
|
||||||
|
# Building with -DINSTALL_UDEV_RULES=ON tries to install udev rules to
|
||||||
|
# /etc/udev/rules.d/, and there is no option to install elsewhere. So install
|
||||||
|
# rules manually.
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p "$out/etc/udev/rules.d/"
|
||||||
|
cp ../rtl-sdr.rules "$out/etc/udev/rules.d/99-rtl-sdr.rules"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Turns your Realtek RTL2832 based DVB dongle into a SDR receiver";
|
||||||
|
homepage = http://sdr.osmocom.org/trac/wiki/rtl-sdr;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = [ maintainers.bjornfor ];
|
||||||
|
};
|
||||||
|
}
|
@ -8804,6 +8804,8 @@ let
|
|||||||
enableCopyDevicesPatch = (config.rsync.enableCopyDevicesPatch or false);
|
enableCopyDevicesPatch = (config.rsync.enableCopyDevicesPatch or false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rtl-sdr = callPackage ../applications/misc/rtl-sdr { };
|
||||||
|
|
||||||
rubyripper = callPackage ../applications/audio/rubyripper {};
|
rubyripper = callPackage ../applications/audio/rubyripper {};
|
||||||
|
|
||||||
rxvt = callPackage ../applications/misc/rxvt { };
|
rxvt = callPackage ../applications/misc/rxvt { };
|
||||||
|
Loading…
Reference in New Issue
Block a user