lol

gnuradioPackages.fosphor: init at unstable-2024-03-23

authored by

Chuang Zhu and committed by
Doron Behar
ac5f925c f93401ee

+95
+93
pkgs/development/gnuradio-modules/fosphor/default.nix
··· 1 + { 2 + lib, 3 + mkDerivation, 4 + fetchgit, 5 + gnuradio, 6 + cmake, 7 + pkg-config, 8 + logLib, 9 + mpir, 10 + gmp, 11 + boost, 12 + libGL, 13 + opencl-headers, 14 + ocl-icd, 15 + freetype, 16 + fftwFloat, 17 + qt5, 18 + python, 19 + enableGLFW ? true, 20 + glfw3, 21 + enablePNG ? true, 22 + libpng, 23 + gnuradioOlder, 24 + gnuradioAtLeast, 25 + }: 26 + 27 + mkDerivation { 28 + pname = "gr-fosphor"; 29 + version = "unstable-2024-03-23"; 30 + 31 + # It is a gitea instance, but its archive service doesn't work very well so 32 + # we can't use it. 33 + src = fetchgit { 34 + url = "https://gitea.osmocom.org/sdr/gr-fosphor.git"; 35 + rev = "74d54fc0b3ec9aeb7033686526c5e766f36eaf24"; 36 + hash = "sha256-FBmH4DmKATl0FPFU7T30OrYYmxlSTTLm1SZpt0o1qkw="; 37 + }; 38 + disabled = gnuradioOlder "3.9" || gnuradioAtLeast "3.11"; 39 + 40 + nativeBuildInputs = 41 + [ 42 + cmake 43 + pkg-config 44 + ] 45 + ++ lib.optionals (gnuradio.hasFeature "gr-qtgui") [ 46 + qt5.wrapQtAppsHook 47 + ]; 48 + 49 + buildInputs = 50 + [ 51 + logLib 52 + mpir 53 + gmp 54 + boost 55 + libGL 56 + opencl-headers 57 + ocl-icd 58 + freetype 59 + fftwFloat 60 + ] 61 + ++ lib.optionals (gnuradio.hasFeature "gr-qtgui") [ 62 + qt5.qtbase 63 + ] 64 + ++ lib.optionals (gnuradio.hasFeature "python-support") [ 65 + python.pkgs.pybind11 66 + python.pkgs.numpy 67 + ] 68 + ++ lib.optionals enableGLFW [ 69 + glfw3 70 + ] 71 + ++ lib.optionals enablePNG [ 72 + libpng 73 + ]; 74 + 75 + cmakeFlags = [ 76 + (lib.cmakeBool "ENABLE_QT" (gnuradio.hasFeature "gr-qtgui")) 77 + (lib.cmakeBool "ENABLE_PYTHON" (gnuradio.hasFeature "python-support")) 78 + (lib.cmakeBool "ENABLE_GLFW" enableGLFW) 79 + (lib.cmakeBool "ENABLE_PNG" enablePNG) 80 + ]; 81 + 82 + meta = { 83 + description = "GNU Radio block for RTSA-like spectrum visualization using OpenCL and OpenGL acceleration"; 84 + longDescription = '' 85 + You'll need to install an OpenCL ICD for it to work. 86 + See https://nixos.org/manual/nixos/stable/#sec-gpu-accel-opencl 87 + ''; 88 + homepage = "https://projects.osmocom.org/projects/sdr/wiki/Fosphor"; 89 + license = lib.licenses.gpl3Plus; 90 + maintainers = with lib.maintainers; [ chuangzhu ]; 91 + platforms = lib.platforms.linux; 92 + }; 93 + }
+2
pkgs/top-level/gnuradio-packages.nix
··· 39 39 40 40 ais = callPackage ../development/gnuradio-modules/ais/default.nix { }; 41 41 42 + fosphor = callPackage ../development/gnuradio-modules/fosphor/default.nix { }; 43 + 42 44 grnet = callPackage ../development/gnuradio-modules/grnet/default.nix { }; 43 45 44 46 gsm = callPackage ../development/gnuradio-modules/gsm/default.nix { };