1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

gqrx: Refactor to use gnuradioMinimal.pkgs.mkDerivation

- Use gnuradio's `mkDerivation` which includes most of the deps needed.
- Always enable pulseaudio support as that's part of gnuradio's deps
anyway.
- Use gnuradioMinimal.pkgs.osmosdr - not from the alias gr-osmosdr.
This commit is contained in:
Doron Behar 2020-12-15 11:58:49 +02:00
parent fea0ac887e
commit 99c3bdb9b6

View file

@ -1,13 +1,23 @@
{ lib, fetchFromGitHub, cmake, qtbase, qtsvg, gnuradio, boost, gr-osmosdr
, mkDerivation
{ lib
, fetchFromGitHub
, cmake
, pkg-config
, qt5
, gnuradioMinimal
, log4cpp
, mpir
, fftwFloat
, alsaLib
, libjack2
# drivers (optional):
, rtl-sdr, hackrf
, rtl-sdr
, hackrf
, pulseaudioSupport ? true, libpulseaudio
}:
assert pulseaudioSupport -> libpulseaudio != null;
mkDerivation rec {
gnuradioMinimal.pkgs.mkDerivation rec {
pname = "gqrx";
version = "2.14.4";
@ -18,9 +28,23 @@ mkDerivation rec {
sha256 = "sha256-mMaxu0jq2GaNLWjLsJQXx+zCxtyiCAZQJJZ8GJtnllQ=";
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
pkg-config
qt5.wrapQtAppsHook
];
buildInputs = [
qtbase qtsvg gnuradio boost gr-osmosdr rtl-sdr hackrf
log4cpp
mpir
fftwFloat
alsaLib
libjack2
gnuradioMinimal.unwrapped.boost
qt5.qtbase
qt5.qtsvg
gnuradioMinimal.pkgs.osmosdr
rtl-sdr
hackrf
] ++ lib.optionals pulseaudioSupport [ libpulseaudio ];
postInstall = ''