nixpkgs/pkgs/by-name/ab/abracadabra/package.nix
2024-11-25 11:27:52 +01:00

61 lines
998 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
qt6,
faad2,
mpg123,
portaudio,
libusb1,
rtl-sdr,
airspy,
soapysdr-with-plugins,
}:
stdenv.mkDerivation rec {
pname = "abracadabra";
version = "2.7.1";
src = fetchFromGitHub {
owner = "KejPi";
repo = "AbracaDABra";
rev = "v${version}";
hash = "sha256-d9DNgpvAZUova0ef6Ge4L/hRjLpY/UkDBawU2UAuSGI=";
};
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
qt6.qttools
];
buildInputs = [
qt6.qtbase
qt6.qtmultimedia
qt6.qtlocation
qt6.qtpositioning
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";
};
}