cubicsdr: fix build on darwin
This commit is contained in:
parent
a830a677c0
commit
8946876295
|
@ -1,5 +1,6 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
|
{ lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
|
||||||
pkg-config, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }:
|
pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false,
|
||||||
|
Cocoa, WebKit }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cubicsdr";
|
pname = "cubicsdr";
|
||||||
|
@ -14,7 +15,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ fftw hamlib libpulseaudio libGL libX11 liquid-dsp soapysdr-with-plugins wxGTK31-gtk3 ];
|
buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ]
|
||||||
|
++ lib.optionals stdenv.isLinux [ libpulseaudio libGL libX11 ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
|
||||||
|
|
||||||
cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
|
cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
|
||||||
++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
|
++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
|
||||||
|
@ -24,6 +27,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "Software Defined Radio application";
|
description = "Software Defined Radio application";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ lasandell ];
|
maintainers = with maintainers; [ lasandell ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, cctools
|
, cctools
|
||||||
|
, autoSignDarwinBinariesHook
|
||||||
|
, fixDarwinDylibNames
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -17,7 +19,9 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = lib.optionals stdenv.isDarwin [ "LIBTOOL=${cctools}/bin/libtool" ];
|
configureFlags = lib.optionals stdenv.isDarwin [ "LIBTOOL=${cctools}/bin/libtool" ];
|
||||||
nativeBuildInputs = [ autoreconfHook ] ++ lib.optionals stdenv.isDarwin [ cctools ];
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ cctools autoSignDarwinBinariesHook fixDarwinDylibNames ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://liquidsdr.org/";
|
homepage = "https://liquidsdr.org/";
|
||||||
|
|
|
@ -20808,7 +20808,9 @@ with pkgs;
|
||||||
|
|
||||||
lirc = callPackage ../development/libraries/lirc { };
|
lirc = callPackage ../development/libraries/lirc { };
|
||||||
|
|
||||||
liquid-dsp = callPackage ../development/libraries/liquid-dsp { inherit (darwin) cctools; };
|
liquid-dsp = callPackage ../development/libraries/liquid-dsp {
|
||||||
|
inherit (darwin) autoSignDarwinBinariesHook cctools;
|
||||||
|
};
|
||||||
|
|
||||||
liquidfun = callPackage ../development/libraries/liquidfun { };
|
liquidfun = callPackage ../development/libraries/liquidfun { };
|
||||||
|
|
||||||
|
@ -27433,7 +27435,9 @@ with pkgs;
|
||||||
|
|
||||||
ctop = callPackage ../tools/system/ctop { };
|
ctop = callPackage ../tools/system/ctop { };
|
||||||
|
|
||||||
cubicsdr = callPackage ../applications/radio/cubicsdr { };
|
cubicsdr = callPackage ../applications/radio/cubicsdr {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
|
||||||
|
};
|
||||||
|
|
||||||
cum = callPackage ../applications/misc/cum { };
|
cum = callPackage ../applications/misc/cum { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue