2021-12-25 05:07:40 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, airspy
|
2023-03-04 12:14:45 +00:00
|
|
|
, rtl-sdr
|
2021-12-25 05:07:40 +00:00
|
|
|
, fdk_aac
|
|
|
|
, faad2
|
|
|
|
, fftwFloat
|
|
|
|
, libsndfile
|
|
|
|
, libsamplerate
|
|
|
|
, portaudio
|
|
|
|
, qtmultimedia
|
|
|
|
, qwt
|
|
|
|
} :
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "guglielmo";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.5";
|
2021-12-25 05:07:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marcogrecopriolo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-W+KTwtxbTDrtONmkw95gXT28n3k9KS364WOzLLJdGLM=";
|
2021-12-25 05:07:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/linux-bin $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
airspy
|
2023-03-04 12:14:45 +00:00
|
|
|
rtl-sdr
|
2021-12-25 05:07:40 +00:00
|
|
|
fdk_aac
|
|
|
|
faad2
|
|
|
|
fftwFloat
|
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
|
|
|
portaudio
|
|
|
|
qtmultimedia
|
|
|
|
qwt
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# guglielmo opens SDR libraries at run time
|
2023-03-04 12:14:45 +00:00
|
|
|
patchelf --add-rpath "${airspy}/lib:${rtl-sdr}/lib" $out/bin/.guglielmo-wrapped
|
2021-12-25 05:07:40 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qt based FM / Dab tuner";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "guglielmo";
|
2021-12-25 05:07:40 +00:00
|
|
|
homepage = "https://github.com/marcogrecopriolo/guglielmo";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|