Fix cura hack.

This commit is contained in:
Gabriel Ebner 2019-05-14 16:12:24 +02:00
parent 7ee95d870d
commit 8933ec7177
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ let curaWorkaround = with pkgs; stdenv.mkDerivation {
# https://github.com/NixOS/nixpkgs/issues/59901 # https://github.com/NixOS/nixpkgs/issues/59901
buildPhase = '' buildPhase = ''
makeWrapper ${cura}/bin/cura $out/bin/cura --set OMP_NUM_THREADS 1 makeWrapper ${cura}/bin/cura $out/bin/cura --set OMP_NUM_THREADS 1
mkdir $out/nix-support
cp ${cura}/nix-support/propagated-user-env-packages $out/nix-support
''; '';
phases = [ "buildPhase" ]; phases = [ "buildPhase" ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];