diff options
author | Gabriel Ebner <gebner@gebner.org> | 2019-08-08 09:01:10 +0200 |
---|---|---|
committer | Gabriel Ebner <gebner@gebner.org> | 2019-08-08 09:40:41 +0200 |
commit | 76f01413bd04fe7ada2045cbb27c21b01c2116bc (patch) | |
tree | 583f82cd406ecca852e405647f5733a997af3f68 /pkgs/applications/misc/cura | |
parent | 041e8a9739cb83fe8cb014076a7a0d2165606740 (diff) |
cura: workaround for #59901
Diffstat (limited to 'pkgs/applications/misc/cura')
-rw-r--r-- | pkgs/applications/misc/cura/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/misc/cura/default.nix b/pkgs/applications/misc/cura/default.nix index e9366d43ef46..67e3924ca18a 100644 --- a/pkgs/applications/misc/cura/default.nix +++ b/pkgs/applications/misc/cura/default.nix @@ -29,6 +29,11 @@ mkDerivation rec { "-DCURA_VERSION=${version}" ]; + makeWrapperArgs = [ + # hacky workaround for https://github.com/NixOS/nixpkgs/issues/59901 + "--set OMP_NUM_THREADS 1" + ]; + postPatch = '' sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt sed -i 's, executable_name = .*, executable_name = "${curaengine}/bin/CuraEngine",' plugins/CuraEngineBackend/CuraEngineBackend.py |