nixpkgs/pkgs/applications/radio/guglielmo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
Nix
Raw Normal View History

2021-12-19 15:28:51 +00:00
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config
, airspy
2023-02-27 16:36:45 +00:00
, rtl-sdr
2021-12-19 15:28:51 +00:00
, fdk_aac
, faad2
, fftwFloat
, libsndfile
, libsamplerate
, portaudio
, qtmultimedia
, qwt
} :
mkDerivation rec {
pname = "guglielmo";
2022-11-03 22:13:33 +00:00
version = "0.4";
2021-12-19 15:28:51 +00:00
src = fetchFromGitHub {
owner = "marcogrecopriolo";
repo = pname;
rev = "v${version}";
2022-11-03 22:13:33 +00:00
sha256 = "sha256-djBQTYbpgPFBtQZ9fZBpECP20RxB49AdxLbq8mUU6rg=";
2021-12-19 15:28:51 +00:00
};
postInstall = ''
mv $out/linux-bin $out/bin
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
airspy
2023-02-27 16:36:45 +00:00
rtl-sdr
2021-12-19 15:28:51 +00:00
fdk_aac
faad2
fftwFloat
libsndfile
libsamplerate
portaudio
qtmultimedia
qwt
];
postFixup = ''
# guglielmo opens SDR libraries at run time
2023-02-27 16:36:45 +00:00
patchelf --add-rpath "${airspy}/lib:${rtl-sdr}/lib" $out/bin/.guglielmo-wrapped
2021-12-19 15:28:51 +00:00
'';
meta = with lib; {
description = "Qt based FM / Dab tuner";
homepage = "https://github.com/marcogrecopriolo/guglielmo";
license = licenses.gpl2Only;
maintainers = [ maintainers.markuskowa ];
platforms = platforms.linux;
};
}