2017-10-21 02:15:00 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, python3, qtbase, qtquickcontrols, curaengine }:
|
2017-02-25 22:05:04 +00:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
mkDerivation rec {
|
2014-09-26 11:12:14 +01:00
|
|
|
name = "cura-${version}";
|
2018-02-25 16:57:07 +00:00
|
|
|
version = "3.2.1";
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-02-25 22:05:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "Cura";
|
|
|
|
rev = version;
|
2018-02-25 16:57:07 +00:00
|
|
|
sha256 = "0yaya0ww92qjm7g31q85m5f95nwdapldjx1kdf1ar4yzwh4r15rp";
|
2014-03-25 22:17:17 +00:00
|
|
|
};
|
|
|
|
|
2017-10-21 02:15:00 +01:00
|
|
|
buildInputs = [ qtbase qtquickcontrols ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [ uranium zeroconf pyserial numpy-stl ];
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ cmake python3.pkgs.wrapPython ];
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-07-27 13:51:00 +01:00
|
|
|
cmakeFlags = [ "-DURANIUM_DIR=${python3.pkgs.uranium.src}" ];
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-02-25 22:05:04 +00:00
|
|
|
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
|
|
|
|
'';
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-02-25 22:05:04 +00:00
|
|
|
postFixup = ''
|
2014-03-25 22:17:17 +00:00
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
meta = with lib; {
|
2017-02-25 22:05:04 +00:00
|
|
|
description = "3D printer / slicing GUI built on top of the Uranium framework";
|
2018-02-25 16:47:45 +00:00
|
|
|
homepage = https://github.com/Ultimaker/Cura;
|
2014-03-25 22:17:17 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.linux;
|
2017-02-25 22:05:04 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-03-25 22:17:17 +00:00
|
|
|
};
|
|
|
|
}
|