2014-03-08 18:16:10 +01:00
|
|
|
{ stdenv, fetchurl, qt4, gnuradio, boost, gnuradio-osmosdr
|
|
|
|
# drivers (optional):
|
|
|
|
, rtl-sdr
|
2015-05-27 21:42:15 +02:00
|
|
|
, pulseaudioSupport ? true, libpulseaudio
|
2014-03-08 18:16:10 +01:00
|
|
|
}:
|
|
|
|
|
2015-05-27 21:42:15 +02:00
|
|
|
assert pulseaudioSupport -> libpulseaudio != null;
|
2014-03-08 18:16:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gqrx-${version}";
|
2014-12-21 21:58:11 +01:00
|
|
|
version = "2.3.2";
|
2014-03-08 18:16:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-12-06 15:50:46 +01:00
|
|
|
url = "mirror://sourceforge/project/gqrx/${version}/${name}.tar.xz";
|
2014-12-21 21:58:11 +01:00
|
|
|
sha256 = "1vfqqa976xlbapqkpc9nka364zydvsy18xiwfqjy015kpasshdz1";
|
2014-03-08 18:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt4 gnuradio boost gnuradio-osmosdr rtl-sdr
|
2015-05-27 21:42:15 +02:00
|
|
|
] ++ stdenv.lib.optionals pulseaudioSupport [ libpulseaudio ];
|
2014-03-08 18:16:10 +01:00
|
|
|
|
|
|
|
configurePhase = ''qmake PREFIX="$out"'';
|
|
|
|
|
2014-12-06 15:50:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/applications"
|
|
|
|
mkdir -p "$out/share/icons"
|
|
|
|
|
|
|
|
cp gqrx.desktop "$out/share/applications/"
|
|
|
|
cp icons/gqrx.svg "$out/share/icons/"
|
|
|
|
'';
|
|
|
|
|
2014-03-08 18:16:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Software defined radio (SDR) receiver";
|
|
|
|
longDescription = ''
|
|
|
|
Gqrx is a software defined radio receiver powered by GNU Radio and the Qt
|
|
|
|
GUI toolkit. It can process I/Q data from many types of input devices,
|
|
|
|
including Funcube Dongle Pro/Pro+, rtl-sdr, HackRF, and Universal
|
|
|
|
Software Radio Peripheral (USRP) devices.
|
|
|
|
'';
|
|
|
|
homepage = http://gqrx.dk/;
|
|
|
|
# Some of the code comes from the Cutesdr project, with a BSD license, but
|
|
|
|
# it's currently unknown which version of the BSD license that is.
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux; # should work on Darwin / OS X too
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|