diff --git a/pkgs/by-name/li/libnest2d/package.nix b/pkgs/by-name/li/libnest2d/package.nix index 88906caac71e..cd583bdc7d2c 100644 --- a/pkgs/by-name/li/libnest2d/package.nix +++ b/pkgs/by-name/li/libnest2d/package.nix @@ -25,6 +25,9 @@ stdenv.mkDerivation { postPatch = '' substituteInPlace {,examples/}CMakeLists.txt \ --replace "set(CMAKE_CXX_STANDARD 11)" "set(CMAKE_CXX_STANDARD 14)" + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" + ''; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/libarcus/default.nix b/pkgs/development/python-modules/libarcus/default.nix index b408fdbb5f48..6188f2c5aaa7 100644 --- a/pkgs/development/python-modules/libarcus/default.nix +++ b/pkgs/development/python-modules/libarcus/default.nix @@ -7,6 +7,7 @@ cmake, sip4, protobuf, + distutils, }: buildPythonPackage rec { @@ -30,16 +31,25 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ sip4 ]; - nativeBuildInputs = [ cmake ]; + propagatedBuildInputs = [ + sip4 + distutils + ]; + + nativeBuildInputs = [ + cmake + sip4 + ]; + buildInputs = [ protobuf ]; + strictDeps = true; + postPatch = '' sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake ''; meta = with lib; { - broken = true; description = "Communication library between internal components for Ultimaker software"; homepage = "https://github.com/Ultimaker/libArcus"; license = licenses.lgpl3Plus; diff --git a/pkgs/development/python-modules/libsavitar/default.nix b/pkgs/development/python-modules/libsavitar/default.nix index a2522c5dc816..7ccfe8052faf 100644 --- a/pkgs/development/python-modules/libsavitar/default.nix +++ b/pkgs/development/python-modules/libsavitar/default.nix @@ -6,6 +6,7 @@ fetchFromGitHub, cmake, sip4, + distutils, }: buildPythonPackage rec { @@ -22,21 +23,28 @@ buildPythonPackage rec { postPatch = '' sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake + + substituteInPlace pugixml/CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)" ''; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + sip4 + ]; - propagatedBuildInputs = [ sip4 ]; + propagatedBuildInputs = [ + sip4 + distutils + ]; - disabled = pythonOlder "3.4.0"; + strictDeps = true; - meta = with lib; { + meta = { description = "C++ implementation of 3mf loading with SIP python bindings"; homepage = "https://github.com/Ultimaker/libSavitar"; - license = licenses.lgpl3Plus; - platforms = platforms.unix; - maintainers = with maintainers; [ - orivej - ]; + license = lib.licenses.lgpl3Plus; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ orivej ]; }; } diff --git a/pkgs/development/python-modules/pynest2d/default.nix b/pkgs/development/python-modules/pynest2d/default.nix index 87cbebb03d7f..5fb72a4cbdb0 100644 --- a/pkgs/development/python-modules/pynest2d/default.nix +++ b/pkgs/development/python-modules/pynest2d/default.nix @@ -7,6 +7,7 @@ libnest2d, sip4, clipper, + distutils, }: buildPythonPackage rec { @@ -25,8 +26,14 @@ buildPythonPackage rec { libnest2d sip4 clipper + distutils ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + sip4 + ]; + + strictDeps = true; CLIPPER_PATH = "${clipper.out}";