summary refs log tree commit diff
path: root/pkgs/applications/misc/cura
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2019-08-08 10:02:54 +0200
committerGitHub <noreply@github.com>2019-08-08 10:02:54 +0200
commit8febac00c377abab92dc81771f97c31ea14d0bb7 (patch)
treee48b74399b6a8bbd1dba7f334d9d6607d5aaabbc /pkgs/applications/misc/cura
parentf6c363f81dbc43e02f16703620cb5315f66559e9 (diff)
parent9e0e36b9d9b84ad97d0dc19e3adf4bc93068ce7b (diff)
downloadnixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar.gz
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar.bz2
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar.lz
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar.xz
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.tar.zst
nixpkgs-8febac00c377abab92dc81771f97c31ea14d0bb7.zip
Merge pull request #66315 from gebner/cura421
cura: 4.1.0 -> 4.2.1
Diffstat (limited to 'pkgs/applications/misc/cura')
-rw-r--r--pkgs/applications/misc/cura/default.nix17
-rw-r--r--pkgs/applications/misc/cura/plugins.nix6
2 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/applications/misc/cura/default.nix b/pkgs/applications/misc/cura/default.nix
index 290801ea578..c211879c3e2 100644
--- a/pkgs/applications/misc/cura/default.nix
+++ b/pkgs/applications/misc/cura/default.nix
@@ -1,21 +1,21 @@
 { mkDerivation, lib, fetchFromGitHub, cmake, python3, qtbase, qtquickcontrols2, qtgraphicaleffects, curaengine, plugins ? [] }:
 
 mkDerivation rec {
-  name = "cura-${version}";
-  version = "4.1.0";
+  pname = "cura";
+  version = "4.2.1";
 
   src = fetchFromGitHub {
     owner = "Ultimaker";
     repo = "Cura";
     rev = version;
-    sha256 = "1mfpnjrh3splpkadgml3v71k939g56zb9hbmzghwfjwlrf8valmz";
+    sha256 = "1qnai8vmgy5lx3lapw96j41i8mw9p6r99i3qzs709l9yzrix6l86";
   };
 
   materials = fetchFromGitHub {
     owner = "Ultimaker";
     repo = "fdm_materials";
-    rev = version;
-    sha256 = "0yp2162msxfwpixzvassn23p7r3swjpwk4nhsjka5w6fm8pv0wpl";
+    rev = "4.2.0"; # TODO: change back to `version` after 4.2.1
+    sha256 = "17x43v0np58qbdfk3wz1k7i9pl0plndx9gmf7y0n23nl9f1qzb0m";
   };
 
   buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects ];
@@ -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
@@ -52,6 +57,6 @@ mkDerivation rec {
     homepage = https://github.com/Ultimaker/Cura;
     license = licenses.lgpl3Plus;
     platforms = platforms.linux;
-    maintainers = with maintainers; [ abbradar ];
+    maintainers = with maintainers; [ abbradar gebner ];
   };
 }
diff --git a/pkgs/applications/misc/cura/plugins.nix b/pkgs/applications/misc/cura/plugins.nix
index a5a196a7810..bdbf8f24136 100644
--- a/pkgs/applications/misc/cura/plugins.nix
+++ b/pkgs/applications/misc/cura/plugins.nix
@@ -6,13 +6,13 @@ let
 
     octoprint = stdenv.mkDerivation rec {
       pname = "Cura-OctoPrintPlugin";
-      version = "3.5.5";
+      version = "3.5.8";
 
       src = fetchFromGitHub {
         owner = "fieldOfView";
         repo = pname;
-        rev = "d05a9a4c1a01c584d5cec4f4b7d170077235467a";
-        sha256 = "0ik69g3kbn7rz2wh0cfq9ww8x222kagd8jvsd4xlqgq4yrf0jk7x";
+        rev = "46548cbb8d32d10fe3aee12f272d5d8f34271738";
+        sha256 = "0pllba8qx1746pnf5ccbkqn2j6f8hhknpgyrrv244ykvigrlczx0";
       };
 
       nativeBuildInputs = [ cmake ];