diff options
author | André-Patrick Bubel <code@andre-bubel.de> | 2018-10-02 09:22:57 +0200 |
---|---|---|
committer | André-Patrick Bubel <code@andre-bubel.de> | 2018-10-02 21:35:22 +0200 |
commit | 2125e07024ba75dda187e607739f13c4b9537415 (patch) | |
tree | 250ae71da8b8a4cd3b84ec00da7c7e28b0d6a819 | |
parent | baacbcd2a0c866bed0d2276d3a31cc277a92fb7f (diff) | |
download | nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar.gz nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar.bz2 nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar.lz nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar.xz nixlib-2125e07024ba75dda187e607739f13c4b9537415.tar.zst nixlib-2125e07024ba75dda187e607739f13c4b9537415.zip |
slic3r-prusa3d: comments on why we apply some patches
-rw-r--r-- | pkgs/applications/misc/slic3r/prusa3d.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/misc/slic3r/prusa3d.nix b/pkgs/applications/misc/slic3r/prusa3d.nix index 9f4036c3f967..f871b07b85c9 100644 --- a/pkgs/applications/misc/slic3r/prusa3d.nix +++ b/pkgs/applications/misc/slic3r/prusa3d.nix @@ -73,7 +73,15 @@ stdenv.mkDerivation rec { ]); prePatch = '' + # In nix ioctls.h isn't available from the standard kernel-headers package + # on other distributions. As the copy in glibc seems to be identical to the + # one in the kernel, we use that one instead. sed -i 's|"/usr/include/asm-generic/ioctls.h"|<asm-generic/ioctls.h>|g' xs/src/libslic3r/GCodeSender.cpp + + # PERL_VENDORARCH and PERL_VENDORLIB aren't detected correctly by the build + # system, so we have to override them. Setting them as environment variables + # doesn't work though, so patching the paths directly in the CMakeLists.txt + # seems to be the easisest way. sed -i "s|\''${PERL_VENDORARCH}|$out/lib/slic3r-prusa3d|g" xs/CMakeLists.txt sed -i "s|\''${PERL_VENDORLIB}|$out/lib/slic3r-prusa3d|g" xs/CMakeLists.txt ''; |