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
|
{ 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
|
, gtest, nlopt, xorg, makeDesktopItem
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -19,12 +19,11 @@ stdenv.mkDerivation rec {
|
||||||
pkgconfig
|
pkgconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
# We could add Eigen, but it doesn't currently compile with the version in
|
|
||||||
# nixpkgs.
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
cereal
|
cereal
|
||||||
curl
|
curl
|
||||||
|
eigen
|
||||||
expat
|
expat
|
||||||
glew
|
glew
|
||||||
libpng
|
libpng
|
||||||
|
@ -41,6 +40,11 @@ stdenv.mkDerivation rec {
|
||||||
# We need to set the path via the NLOPT environment variable instead.
|
# We need to set the path via the NLOPT environment variable instead.
|
||||||
NLOPT = nlopt;
|
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 = ''
|
prePatch = ''
|
||||||
# In nix ioctls.h isn't available from the standard kernel-headers package
|
# 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
|
# like in other distributions. The copy in glibc seems to be identical to the
|
||||||
|
|
Loading…
Reference in New Issue