nixpkgs-suyu/pkgs/applications/radio/abracadabra/default.nix
2024-03-10 00:34:38 +00:00

50 lines
963 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, wrapQtAppsHook
, qtbase, qtmultimedia, qttools
, faad2, mpg123, portaudio
, libusb1, rtl-sdr, airspy, soapysdr-with-plugins
} :
stdenv.mkDerivation rec {
pname = "abracadabra";
version = "2.5.0";
src = fetchFromGitHub {
owner = "KejPi";
repo = "AbracaDABra";
rev = "v${version}";
hash = "sha256-w/WAcTorLCzqHLwQjbZwaHGytLXHr4eW7Yx768on67Q=";
};
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";
};
}