gqrx: add wrapGAppsHook

Fixes saving settings on non-NixOS systems ("No GSettings schemas are
installed on the system").

Fix https://github.com/NixOS/nixpkgs/issues/173848.
This commit is contained in:
Bjørn Forsman 2022-05-21 12:10:54 +02:00
parent dd0260ccc9
commit 8f254b8107

View File

@ -9,6 +9,7 @@
, fftwFloat
, alsa-lib
, libjack2
, wrapGAppsHook
# drivers (optional):
, rtl-sdr
, hackrf
@ -36,6 +37,7 @@ gnuradio3_8Minimal.pkgs.mkDerivation rec {
cmake
pkg-config
qt5.wrapQtAppsHook
wrapGAppsHook
];
buildInputs = [
gnuradio3_8Minimal.unwrapped.log4cpp
@ -67,6 +69,12 @@ gnuradio3_8Minimal.pkgs.mkDerivation rec {
"-DLINUX_AUDIO_BACKEND=${audioBackend}"
];
# Prevent double-wrapping, inject wrapper args manually instead.
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
description = "Software defined radio (SDR) receiver";
longDescription = ''