"Lix upstream strongly discourage the usage of GCC to compile Lix as there's known miscompilations in important places. If you are a compiler developer, please get in touch with us.";
stdenv.mkDerivation(finalAttrs:{
pname="lix";
version="${version}${suffix}";
@@ -91,9 +115,24 @@ stdenv.mkDerivation {
];
strictDeps=true;
disallowedReferences=lib.optionalsisLLVMOnly[
# We don't want the Clang.
stdenv.cc.cc
# We don't want the underlying GCC neither!
stdenv.cc.cc.stdenv.cc.cc
];
# We only include CMake so that Meson can locate toml11, which only ships CMake dependency metadata.
dontUseCmakeConfigure=true;
nativeBuildInputs=
[
# python3.withPackages does not splice properly, see https://github.com/NixOS/nixpkgs/issues/305858
(python3.pythonOnBuildForHost.withPackages(p:[
p.pytest
p.pytest-xdist
p.python-frontmatter
]))
pkg-config
flex
jq
@@ -101,6 +140,8 @@ stdenv.mkDerivation {
ninja
cmake
python3
# Required for libstd++ assertions that leaks inside of the final binary.