Merge pull request #220893 from mrene/fix-sdrangel-darwin

sdrangel: fix darwin build
This commit is contained in:
Weijia Wang 2023-03-18 19:26:49 +02:00 committed by GitHub
commit de7f43e787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 16 deletions

View file

@ -1,4 +1,6 @@
{ airspy
{ lib
, stdenv
, airspy
, airspyhf
, aptdec
, boost
@ -13,7 +15,6 @@
, glew
, hackrf
, hidapi
, lib
, ffmpeg
, libiio
, libopus
@ -95,7 +96,7 @@ mkDerivation rec {
"-DDAB_LIB=${dab_lib}"
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite.so"
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite${stdenv.hostPlatform.extensions.sharedLibrary}"
"-DSGP4_DIR=${sgp4}"
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
];
@ -110,6 +111,6 @@ mkDerivation rec {
homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ alkeryn ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -26,6 +26,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/Xerbo/aptdec";
license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Fast GF(256) Cauchy MDS Block Erasure Codec in C++";
homepage = "https://github.com/f4exb/cm256cc";
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ alkeryn ];
license = licenses.gpl3;
};

View file

@ -23,6 +23,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/JvanKatwijk/dab-cmdline";
license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/f4exb/dsdcc";
license = licenses.gpl3;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -32,7 +32,7 @@
, enableDC1394 ? false, libdc1394
, enableDocs ? false, doxygen, graphviz-nox
, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2, CoreMedia, MediaToolbox
}:
assert blas.implementation == "openblas" && lapack.implementation == "openblas";
@ -211,7 +211,7 @@ stdenv.mkDerivation {
# tesseract & leptonica.
++ lib.optionals enableTesseract [ tesseract leptonica ]
++ lib.optional enableTbb tbb
++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration ]
++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration CoreMedia MediaToolbox ]
++ lib.optionals enableDocs [ doxygen graphviz-nox ];
propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy
@ -250,7 +250,6 @@ stdenv.mkDerivation {
] ++ lib.optionals stdenv.isDarwin [
"-DWITH_OPENCL=OFF"
"-DWITH_LAPACK=OFF"
"-DBUILD_opencv_videoio=OFF"
] ++ lib.optionals enablePython [
"-DOPENCV_SKIP_PYTHON_LOADER=ON"
] ++ lib.optionals enableEigen [

View file

@ -1,9 +1,9 @@
{ qtModule, speechd, pkg-config }:
{ lib, qtModule, stdenv, speechd, pkg-config }:
qtModule {
pname = "qtspeech";
qtInputs = [ ];
buildInputs = [ speechd ];
buildInputs = lib.optionals stdenv.isLinux [ speechd ];
nativeBuildInputs = [ pkg-config ];
outputs = [ "out" "dev" ];
}

View file

@ -221,6 +221,7 @@ qtModule {
Prefix = ..
EOF
'' + ''
# Fix for out-of-sync QtWebEngine and Qt releases (since 5.15.3)
sed 's/${lib.head (lib.splitString "-" version)} /${qtCompatVersion} /' -i "$out"/lib/cmake/*/*Config.cmake
'';

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "C++ Minimal interface to encode and decode audio with AMBE3000 based devices in packet mode over a serial link";
homepage = "https://github.com/f4exb/serialdv";
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ alkeryn ];
license = licenses.gpl3;
};

View file

@ -18,6 +18,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/dnwrnr/sgp4";
license = licenses.asl20;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -22816,7 +22816,7 @@ with pkgs;
};
opencv3 = callPackage ../development/libraries/opencv/3.x.nix {
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration;
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration CoreMedia MediaToolbox;
ffmpeg = ffmpeg_4;
};