2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, wrapQtAppsHook
|
|
|
|
, qtbase, qtmultimedia, qttools
|
|
|
|
, faad2, mpg123, portaudio
|
|
|
|
, libusb1, rtl-sdr, airspy, soapysdr-with-plugins
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abracadabra";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.2.4";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KejPi";
|
|
|
|
repo = "AbracaDABra";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-gpZ6ckV//fhDlpAqmMwL4XNXX7xFmGi58fkOC4oRcDM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
faad2
|
|
|
|
mpg123
|
|
|
|
portaudio
|
|
|
|
libusb1
|
|
|
|
rtl-sdr
|
|
|
|
airspy
|
|
|
|
soapysdr-with-plugins
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DAIRSPY=ON"
|
|
|
|
"-DSOAPYSDR=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DAB/DAB+ radio application";
|
|
|
|
homepage = "https://github.com/KejPi/AbracaDABra";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
mainProgram = "AbracaDABra";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|