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 changed files with 30 additions and 6 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue