2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
2017-12-19 22:32:26 +01:00
|
|
|
, qtbase, qtcharts, qtmultimedia, qtquickcontrols, qtquickcontrols2
|
2018-04-25 20:58:50 +02:00
|
|
|
, faad2, rtl-sdr, soapysdr-with-plugins, libusb, fftwSinglePrec }:
|
2017-12-19 22:32:26 +01:00
|
|
|
let
|
|
|
|
|
2018-11-13 23:26:42 +01:00
|
|
|
version = "1.0";
|
2017-12-19 22:32:26 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "welle-io-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlbrechtL";
|
|
|
|
repo = "welle.io";
|
|
|
|
rev = "V${version}";
|
2018-11-13 23:26:42 +01:00
|
|
|
sha256 = "1fsr0c2w16z45mcr85sqmllw1xf2gn6hp6f6fmgx2zfprq8gdmcr";
|
2017-12-19 22:32:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
faad2
|
|
|
|
fftwSinglePrec
|
|
|
|
libusb
|
|
|
|
qtbase
|
|
|
|
qtcharts
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
|
|
|
rtl-sdr
|
2018-04-25 20:58:50 +02:00
|
|
|
soapysdr-with-plugins
|
2017-12-19 22:32:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2018-04-25 20:58:50 +02:00
|
|
|
"-DRTLSDR=true" "-DSOAPYSDR=true"
|
2017-12-19 22:32:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A DAB/DAB+ Software Radio";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://www.welle.io/;
|
2017-12-19 22:32:26 +01:00
|
|
|
maintainers = with maintainers; [ ck3d ];
|
|
|
|
license = licenses.gpl2;
|
2018-04-26 10:17:40 +02:00
|
|
|
platforms = with platforms; [ "x86_64-linux" "i686-linux" ] ++ darwin;
|
2017-12-19 22:32:26 +01:00
|
|
|
};
|
|
|
|
}
|