mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
Merge pull request #103941 from poita66/cura_4.8.0
cura: 4.7.1 -> 4.8.0
This commit is contained in:
commit
a6dabb2a86
@ -1,26 +1,27 @@
|
|||||||
{ mkDerivation, lib, fetchFromGitHub, cmake, python3, qtbase, qtquickcontrols2, qtgraphicaleffects, curaengine, plugins ? [] }:
|
{ mkDerivation, lib, fetchFromGitHub, cmake, python3, qtbase,
|
||||||
|
qtquickcontrols2, qtgraphicaleffects, curaengine, plugins ? [] }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "cura";
|
pname = "cura";
|
||||||
version = "4.7.1";
|
version = "4.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Ultimaker";
|
owner = "Ultimaker";
|
||||||
repo = "Cura";
|
repo = "Cura";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "19an168iad3cb5w8i71c0wbr79qnz5qnpxqx1j6dgh64qz6ffn2r";
|
sha256 = "060fqzspipm93ks0inrj7yrj5wmvkdfv8xaxrv22590yb9f95s9m";
|
||||||
};
|
};
|
||||||
|
|
||||||
materials = fetchFromGitHub {
|
materials = fetchFromGitHub {
|
||||||
owner = "Ultimaker";
|
owner = "Ultimaker";
|
||||||
repo = "fdm_materials";
|
repo = "fdm_materials";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1w6i0dlff8b30q987x3y0zv8847fc8ppfcr9vi982msmv284c89z";
|
sha256 = "0hi9w1fsnazlr0vvxdr3alsdb8m1vjjfp5zhmlz4kyyxhsy3bc33";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects ];
|
buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects ];
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
libsavitar numpy-stl pyserial requests uranium zeroconf
|
libsavitar numpy-stl pyserial requests uranium zeroconf pynest2d
|
||||||
sentry-sdk trimesh
|
sentry-sdk trimesh
|
||||||
] ++ plugins;
|
] ++ plugins;
|
||||||
nativeBuildInputs = [ cmake python3.pkgs.wrapPython ];
|
nativeBuildInputs = [ cmake python3.pkgs.wrapPython ];
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "curaengine";
|
pname = "curaengine";
|
||||||
version = "4.7.1";
|
version = "4.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Ultimaker";
|
owner = "Ultimaker";
|
||||||
repo = "CuraEngine";
|
repo = "CuraEngine";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "177fk6j4gn3ssi8j1qxj8p4486f7jkz328vc75agxnh7vhd4mwsm";
|
sha256 = "083l327ry6hv3yaa1p8dx1hx7fm12b0lh5nlbshxjyym0vi15rw2";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
30
pkgs/development/libraries/libnest2d/default.nix
Normal file
30
pkgs/development/libraries/libnest2d/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, cmake, clipper, nlopt, boost, python3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2020-10-09-unstable";
|
||||||
|
pname = "libnest2d";
|
||||||
|
|
||||||
|
# This revision is waiting to be merged upstream
|
||||||
|
# Once it has been merged, this should be switched to it
|
||||||
|
# Upstream PR: https://github.com/tamasmeszaros/libnest2d/pull/18
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Ultimaker";
|
||||||
|
repo = "libnest2d";
|
||||||
|
rev = "31391fd173249ad9b906390058e13b09238fadc8";
|
||||||
|
sha256 = "1hzqi4z55x76rss3xk7hfqhy9hcaq2jaav5jqxa1aqmbvarr2gla";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ clipper nlopt boost ];
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
CLIPPER_PATH = "${clipper.out}";
|
||||||
|
cmakeFlags = [ "-DLIBNEST2D_HEADER_ONLY=OFF" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description =
|
||||||
|
"2D irregular bin packaging and nesting library written in modern C++";
|
||||||
|
homepage = "https://github.com/Ultimaker/libnest2d";
|
||||||
|
license = licenses.lgpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libarcus";
|
pname = "libarcus";
|
||||||
version = "4.7.1";
|
version = "4.8.0";
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Ultimaker";
|
owner = "Ultimaker";
|
||||||
repo = "libArcus";
|
repo = "libArcus";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0wmrcvw7k34ib93shhmjzh6kpndgqr37kyr377sril5clmac0z1f";
|
sha256 = "1dvz1rkvm4309yzvj7vy49v1vskr5yfq4nzqdiydp1jb7zpvhqqm";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.4.0";
|
disabled = pythonOlder "3.4.0";
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libsavitar";
|
pname = "libsavitar";
|
||||||
version = "4.7.1";
|
version = "4.8.0";
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Ultimaker";
|
owner = "Ultimaker";
|
||||||
repo = "libSavitar";
|
repo = "libSavitar";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0mzr3ynfap51bcn6kshyi2h6iny2gpavn6g3b1xcsgzzlxqgfixf";
|
sha256 = "1mxkvnhn8k1a86jlnjnlpf0b8dvrcg3n7pslf60s13cgb7w3sfzh";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
31
pkgs/development/python-modules/pynest2d/default.nix
Normal file
31
pkgs/development/python-modules/pynest2d/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python3, cmake
|
||||||
|
, pythonOlder, libnest2d, sip, clipper }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "4.8.0";
|
||||||
|
pname = "pynest2d";
|
||||||
|
format = "other";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Ultimaker";
|
||||||
|
repo = "pynest2d";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "18dn92vgr4gvf9scfh93yg9bwrhdjvq62di08rpi7pqjrrvq2nvp";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ libnest2d sip clipper ];
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
CLIPPER_PATH = "${clipper.out}";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python3.sitePackages}#' cmake/SIPMacros.cmake
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Python bindings for libnest2d";
|
||||||
|
homepage = "https://github.com/Ultimaker/pynest2d";
|
||||||
|
license = licenses.lgpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -14416,6 +14416,8 @@ in
|
|||||||
|
|
||||||
libndctl = callPackage ../development/libraries/libndctl { };
|
libndctl = callPackage ../development/libraries/libndctl { };
|
||||||
|
|
||||||
|
libnest2d = callPackage ../development/libraries/libnest2d { };
|
||||||
|
|
||||||
libnet = callPackage ../development/libraries/libnet { };
|
libnet = callPackage ../development/libraries/libnet { };
|
||||||
|
|
||||||
libnetfilter_acct = callPackage ../development/libraries/libnetfilter_acct { };
|
libnetfilter_acct = callPackage ../development/libraries/libnetfilter_acct { };
|
||||||
|
@ -5341,6 +5341,8 @@ in {
|
|||||||
|
|
||||||
pync = callPackage ../development/python-modules/pync { };
|
pync = callPackage ../development/python-modules/pync { };
|
||||||
|
|
||||||
|
pynest2d = callPackage ../development/python-modules/pynest2d { };
|
||||||
|
|
||||||
pynisher = callPackage ../development/python-modules/pynisher { };
|
pynisher = callPackage ../development/python-modules/pynisher { };
|
||||||
|
|
||||||
pynmea2 = callPackage ../development/python-modules/pynmea2 { };
|
pynmea2 = callPackage ../development/python-modules/pynmea2 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user