depot/third_party/nixpkgs/pkgs/applications/radio/guglielmo/default.nix
Default email 74492c8629 Project import generated by Copybara.
GitOrigin-RevId: cb372c3b8880e504b06946e8fb2ca9777c685505
2021-12-25 13:07:40 +08:00

55 lines
1.1 KiB
Nix

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