mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
wrapQtAppsHook,
|
|
qtbase,
|
|
qtcharts,
|
|
qtmultimedia,
|
|
qt5compat,
|
|
faad2,
|
|
rtl-sdr,
|
|
soapysdr-with-plugins,
|
|
libusb-compat-0_1,
|
|
fftwSinglePrec,
|
|
lame,
|
|
mpg123,
|
|
unixtools,
|
|
withFlac ? true,
|
|
flac,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "welle-io";
|
|
version = "2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlbrechtL";
|
|
repo = "welle.io";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-+xjwvxFrv++XF6Uhm/ZwkseuToz3LtqCfTD18GiwNyw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
unixtools.xxd
|
|
];
|
|
|
|
buildInputs = [
|
|
faad2
|
|
fftwSinglePrec
|
|
lame
|
|
libusb-compat-0_1
|
|
mpg123
|
|
qtbase
|
|
qtcharts
|
|
qtmultimedia
|
|
qt5compat
|
|
rtl-sdr
|
|
soapysdr-with-plugins
|
|
] ++ lib.optional withFlac flac;
|
|
|
|
cmakeFlags = [
|
|
"-DRTLSDR=true"
|
|
"-DSOAPYSDR=true"
|
|
] ++ lib.optional withFlac "-DFLAC=true";
|
|
|
|
meta = {
|
|
description = "DAB/DAB+ Software Radio";
|
|
homepage = "https://www.welle.io/";
|
|
maintainers = with lib.maintainers; [
|
|
ck3d
|
|
markuskowa
|
|
];
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"i686-linux"
|
|
] ++ lib.platforms.darwin;
|
|
};
|
|
})
|