blender-cadsketcher is compiling
This commit is contained in:
parent
4811ba6d00
commit
30a5f03eed
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.openscad
|
#pkgs.creality-print
|
||||||
pkgs.blender
|
|
||||||
#pkgs.blender-cadsketcher
|
|
||||||
#pkgs.py-slvs
|
|
||||||
pkgs.freecad
|
|
||||||
(pkgs.appimageTools.wrapType2
|
(pkgs.appimageTools.wrapType2
|
||||||
{
|
{
|
||||||
name = "creality-print";
|
name = "creality-print";
|
||||||
@ -15,6 +11,10 @@
|
|||||||
sha256 = "sha256-WUsL7UbxSY94H4F1Ww8vLsfRyeg2/DZ+V4B6eH3M6+M=";
|
sha256 = "sha256-WUsL7UbxSY94H4F1Ww8vLsfRyeg2/DZ+V4B6eH3M6+M=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
pkgs.openscad
|
||||||
|
pkgs.blender-cadsketcher
|
||||||
|
#pkgs.py-slvs
|
||||||
|
pkgs.freecad
|
||||||
# (pkgs.appimageTools.wrapType2
|
# (pkgs.appimageTools.wrapType2
|
||||||
# {
|
# {
|
||||||
# name = "orca-slicer";
|
# name = "orca-slicer";
|
||||||
|
@ -1,31 +1,36 @@
|
|||||||
{ lib, blender, python3Packages, fetchFromGitHub, pkgs }:
|
{ lib, blender, python3Packages, fetchFromGitHub, pkgs, fetchurl}:
|
||||||
|
|
||||||
let
|
let
|
||||||
py-slvs = python3Packages.buildPythonPackage rec {
|
py-slvs = python3Packages.buildPythonPackage rec {
|
||||||
|
|
||||||
pname = "py-slvs";
|
pname = "py-slvs";
|
||||||
version = "1.0.6";
|
version = "1.0.6";
|
||||||
|
src = fetchurl {
|
||||||
src = fetchFromGitHub {
|
url = "https://pypi.org/packages/source/p/py_slvs/py_slvs-1.0.6.tar.gz";
|
||||||
owner = "realthunder";
|
sha256 = "sha256-U6T/aXy0JTC1ptL5oBmch0ytSPmIkRA8XOi31NpArnI=";
|
||||||
repo = "slvs_py";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "hBuW8Guqli/jMFPygG8jq5ZLs508Ss+lmBORuW6yTxs=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.swig pkgs.cmake pkgs.ninja ];
|
pyproject = true;
|
||||||
|
|
||||||
cmakeFlags = [
|
nativeBuildInputs = with pkgs; [
|
||||||
"-B."
|
swig
|
||||||
"-H${src}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ setuptools wheel scikit-build cmake ninja ];
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
cmake
|
||||||
|
ninja
|
||||||
|
setuptools
|
||||||
|
scikit-build
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
description = "Python binding of SOLVESPACE geometry constraint solver";
|
description = "Python binding of SOLVESPACE geometry constraint solver";
|
||||||
homepage = "https://github.com/realthunder/slvs_py";
|
homepage = "https://github.com/realthunder/slvs_py";
|
||||||
license = lib.licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
blender.overrideAttrs (oldAttrs: {
|
blender.overrideAttrs (oldAttrs: {
|
||||||
|
@ -31,7 +31,7 @@ let
|
|||||||
in
|
in
|
||||||
# Define the package
|
# Define the package
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "creality-print-app";
|
name = "creality-print";
|
||||||
buildInputs = [ creality-print ];
|
buildInputs = [ creality-print ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
@ -54,4 +54,3 @@ pkgs.stdenv.mkDerivation {
|
|||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user