gqrx: move to by-name, remove with lib (#420317)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-27 08:13:08 +02:00 committed by GitHub
commit 6d3eb42973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 15 deletions

View File

@ -4,9 +4,7 @@
cmake,
desktopToDarwinBundle,
pkg-config,
qtbase,
qtsvg,
qtwayland,
qt6Packages,
gnuradioMinimal,
thrift,
mpir,
@ -14,7 +12,6 @@
alsa-lib,
libjack2,
wrapGAppsHook3,
wrapQtAppsHook,
# drivers (optional):
rtl-sdr,
hackrf,
@ -44,7 +41,7 @@ gnuradioMinimal.pkgs.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
qt6Packages.wrapQtAppsHook
wrapGAppsHook3
] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
@ -55,15 +52,15 @@ gnuradioMinimal.pkgs.mkDerivation rec {
fftwFloat
libjack2
gnuradioMinimal.unwrapped.boost
qtbase
qtsvg
qt6Packages.qtbase
qt6Packages.qtsvg
gnuradioMinimal.pkgs.osmosdr
rtl-sdr
hackrf
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
qtwayland
qt6Packages.qtwayland
]
++ lib.optionals (gnuradioMinimal.hasFeature "gr-ctrlport") [
thrift
@ -92,7 +89,7 @@ gnuradioMinimal.pkgs.mkDerivation rec {
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
meta = {
description = "Software defined radio (SDR) receiver";
mainProgram = "gqrx";
longDescription = ''
@ -104,9 +101,9 @@ gnuradioMinimal.pkgs.mkDerivation rec {
homepage = "https://gqrx.dk/";
# Some of the code comes from the Cutesdr project, with a BSD license, but
# it's currently unknown which version of the BSD license that is.
license = licenses.gpl3Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [
bjornfor
fpletz
];

View File

@ -12218,12 +12218,11 @@ with pkgs;
inherit (ocamlPackages) google-drive-ocamlfuse;
gqrx = qt6Packages.callPackage ../applications/radio/gqrx { };
gqrx-portaudio = qt6Packages.callPackage ../applications/radio/gqrx {
gqrx-portaudio = gqrx.override {
portaudioSupport = true;
pulseaudioSupport = false;
};
gqrx-gr-audio = qt6Packages.callPackage ../applications/radio/gqrx {
gqrx-gr-audio = gqrx.override {
portaudioSupport = false;
pulseaudioSupport = false;
};