@@ -0,0 +1,47 @@
1+{ stdenv, buildEnv, fetchFromGitHub, cmake, pkgconfig
2+, qtbase, qtcharts, qtmultimedia, qtquickcontrols, qtquickcontrols2
3+, faad2, rtl-sdr, libusb, fftwSinglePrec }:
4+let
5+
6+ version = "1.0-rc1";
7+
8+in stdenv.mkDerivation {
9+
10+ name = "welle-io-${version}";
11+
12+ src = fetchFromGitHub {
13+ owner = "AlbrechtL";
14+ repo = "welle.io";
15+ rev = "V${version}";
16+ sha256 = "1xi59rmk3rdqqxxxrm2pbllrlsql46vxs95l1pkfx7bp8f7n7rsv";
17+ };
18+
19+ nativeBuildInputs = [ cmake pkgconfig ];
20+
21+ buildInputs = [
22+ faad2
23+ fftwSinglePrec
24+ libusb
25+ qtbase
26+ qtcharts
27+ qtmultimedia
28+ qtquickcontrols
29+ qtquickcontrols2
30+ rtl-sdr
31+ ];
32+
33+ cmakeFlags = [
34+ "-DRTLSDR=true"
35+ ];
36+
37+ enableParallelBuilding = true;
38+
39+ meta = with stdenv.lib; {
40+ description = "A DAB/DAB+ Software Radio";
41+ homepage = http://www.welle.io/;
42+ maintainers = with maintainers; [ ck3d ];
43+ license = licenses.gpl2;
44+ platforms = with platforms; linux ++ darwin;
45+ };
46+
47+}