prusa-slicer: add Eigen as dependency
Previously compilation failed when using our version of Eigen. Now it works again.
This commit is contained in:
parent
5c95ab00ce
commit
dda8e47473
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, lib, fetchFromGitHub, makeWrapper, cmake, pkgconfig
|
||||
, boost, cereal, curl, expat, glew, libpng, tbb, wxGTK30
|
||||
, boost, cereal, curl, eigen, expat, glew, libpng, tbb, wxGTK30
|
||||
, gtest, nlopt, xorg, makeDesktopItem
|
||||
}:
|
||||
let
|
||||
|
@ -19,12 +19,11 @@ stdenv.mkDerivation rec {
|
|||
pkgconfig
|
||||
];
|
||||
|
||||
# We could add Eigen, but it doesn't currently compile with the version in
|
||||
# nixpkgs.
|
||||
buildInputs = [
|
||||
boost
|
||||
cereal
|
||||
curl
|
||||
eigen
|
||||
expat
|
||||
glew
|
||||
libpng
|
||||
|
@ -41,6 +40,11 @@ stdenv.mkDerivation rec {
|
|||
# We need to set the path via the NLOPT environment variable instead.
|
||||
NLOPT = nlopt;
|
||||
|
||||
# Disable compiler warnings that clutter the build log
|
||||
# It seems to be a known issue for Eigen:
|
||||
# http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221
|
||||
NIX_CFLAGS_COMPILE = "-Wno-ignored-attributes";
|
||||
|
||||
prePatch = ''
|
||||
# In nix ioctls.h isn't available from the standard kernel-headers package
|
||||
# like in other distributions. The copy in glibc seems to be identical to the
|
||||
|
|
Loading…
Reference in New Issue