mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
bluespec: move env variable(s) into env for structuredAttrs
This commit is contained in:
@@ -177,12 +177,17 @@ stdenv.mkDerivation rec {
|
||||
cctools
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString (
|
||||
lib.optionals (stdenv.cc.isClang) [
|
||||
# wide_data.cxx:1750:15: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
|
||||
"-Wno-error"
|
||||
]
|
||||
);
|
||||
env =
|
||||
lib.optionalAttrs (stdenv.cc.isClang) {
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
# wide_data.cxx:1750:15: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
|
||||
"-Wno-error"
|
||||
];
|
||||
}
|
||||
// lib.optionalAttrs (withSuiteCheck && stdenv.hostPlatform.isLinux) {
|
||||
# bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
|
||||
LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"NO_DEPS_CHECKS=1" # skip the subrepo check (this deriviation uses yices-src instead of the subrepo)
|
||||
@@ -235,11 +240,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
checkTarget = if withSuiteCheck then "checkparallel" else "check-smoke"; # this is the shortest check but "check-suite" tests much more
|
||||
|
||||
# bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
|
||||
LOCALE_ARCHIVE = lib.optionalString (
|
||||
withSuiteCheck && stdenv.hostPlatform.isLinux
|
||||
) "${glibcLocales}/lib/locale/locale-archive";
|
||||
|
||||
nativeCheckInputs = [
|
||||
gmp-static
|
||||
iverilog
|
||||
|
||||
Reference in New Issue
Block a user