Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.1 KiB
Nix

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