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:
parent
fea0ac887e
commit
99c3bdb9b6
@ -1,13 +1,23 @@
|
|||||||
{ lib, fetchFromGitHub, cmake, qtbase, qtsvg, gnuradio, boost, gr-osmosdr
|
{ lib
|
||||||
, mkDerivation
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, qt5
|
||||||
|
, gnuradioMinimal
|
||||||
|
, log4cpp
|
||||||
|
, mpir
|
||||||
|
, fftwFloat
|
||||||
|
, alsaLib
|
||||||
|
, libjack2
|
||||||
# drivers (optional):
|
# drivers (optional):
|
||||||
, rtl-sdr, hackrf
|
, rtl-sdr
|
||||||
|
, hackrf
|
||||||
, pulseaudioSupport ? true, libpulseaudio
|
, pulseaudioSupport ? true, libpulseaudio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert pulseaudioSupport -> libpulseaudio != null;
|
assert pulseaudioSupport -> libpulseaudio != null;
|
||||||
|
|
||||||
mkDerivation rec {
|
gnuradioMinimal.pkgs.mkDerivation rec {
|
||||||
pname = "gqrx";
|
pname = "gqrx";
|
||||||
version = "2.14.4";
|
version = "2.14.4";
|
||||||
|
|
||||||
@ -18,9 +28,23 @@ mkDerivation rec {
|
|||||||
sha256 = "sha256-mMaxu0jq2GaNLWjLsJQXx+zCxtyiCAZQJJZ8GJtnllQ=";
|
sha256 = "sha256-mMaxu0jq2GaNLWjLsJQXx+zCxtyiCAZQJJZ8GJtnllQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
qt5.wrapQtAppsHook
|
||||||
|
];
|
||||||
buildInputs = [
|
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 ];
|
] ++ lib.optionals pulseaudioSupport [ libpulseaudio ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user