mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
gnuradio: fix on darwin-aarch64
This commit is contained in:
parent
bd25ef7997
commit
b6bd2830cd
@ -6,6 +6,7 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
# See https://files.ettus.com/manual_archive/v3.15.0.0/html/page_build_guide.html for dependencies explanations
|
# See https://files.ettus.com/manual_archive/v3.15.0.0/html/page_build_guide.html for dependencies explanations
|
||||||
, boost
|
, boost
|
||||||
|
, ncurses
|
||||||
, enableCApi ? true
|
, enableCApi ? true
|
||||||
# requires numpy
|
# requires numpy
|
||||||
, enablePythonApi ? false
|
, enablePythonApi ? false
|
||||||
@ -105,6 +106,7 @@ stdenv.mkDerivation rec {
|
|||||||
# However, if enableLibuhd_Python_api *or* enableUtils is on, we need
|
# However, if enableLibuhd_Python_api *or* enableUtils is on, we need
|
||||||
# pythonEnv for runtime as well. The utilities' runtime dependencies are
|
# pythonEnv for runtime as well. The utilities' runtime dependencies are
|
||||||
# handled at the environment
|
# handled at the environment
|
||||||
|
++ optionals (enableExamples) [ ncurses ncurses.dev ]
|
||||||
++ optionals (enablePythonApi || enableUtils) [ pythonEnv ]
|
++ optionals (enablePythonApi || enableUtils) [ pythonEnv ]
|
||||||
++ optionals (enableDpdk) [ dpdk ]
|
++ optionals (enableDpdk) [ dpdk ]
|
||||||
;
|
;
|
||||||
@ -124,7 +126,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPhases = [ "installFirmware" "removeInstalledTests" ]
|
postPhases = [ "installFirmware" "removeInstalledTests" ]
|
||||||
++ optionals (enableUtils) [ "moveUdevRules" ]
|
++ optionals (enableUtils && stdenv.targetPlatform.isLinux) [ "moveUdevRules" ]
|
||||||
;
|
;
|
||||||
|
|
||||||
# UHD expects images in `$CMAKE_INSTALL_PREFIX/share/uhd/images`
|
# UHD expects images in `$CMAKE_INSTALL_PREFIX/share/uhd/images`
|
||||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "gnuradio";
|
owner = "gnuradio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-kI4IuO6TLplo5lLAGIPWQWtePcjIEWB9XaJDA6WlqSg=";
|
sha256 = "sha256-XvX6emv30bSB29EFm6aC+j8NGOxWqHCNv0Hxtdrq/jc=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -58,4 +58,3 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user