Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build123d v0.7.0 #48

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add build123d v0.7.0 #48

wants to merge 10 commits into from

Conversation

erooke
Copy link
Contributor

@erooke erooke commented May 15, 2024

Adds an expression for build123d. To do this expressions had to be added for svgpathtools, ocpsvg, py-lib3mf, and trianglesolver.

At the moment nixpkgs has lib3mf 2.2.0 packaged. For ease of making it work asap I followed suit. This meant building py-lib3mf version 2.2.0 and only building version 0.4.0 of build123d (current is 0.5.0).

Would close #41.

@erooke
Copy link
Contributor Author

erooke commented May 15, 2024

Turns out updating everything to make version 0.5.0 work was not too much work.

At the moment nixpkgs has lib3mf 2.2.0 and ezdxf 0.18.1. Build123d needs lib3mf 2.3.1 and ezdxf at least 1.1.4. So expressions for those were added to make the whole thing build.

@erooke erooke changed the title Add build123d v0.4.0 Add build123d v0.5.0 May 15, 2024
@adisbladis
Copy link
Contributor

I've bumped ezdxf in NixOS/nixpkgs#333861

@blinry
Copy link

blinry commented Aug 11, 2024

Thanks for working on packaging this!

When I try to run nix run github:erooke/cq-flake/build123d#build123d, I get the following error:

error: hash mismatch in fixed-output derivation '/nix/store/wi140b0ph74rzp4dxkyss4cyz90wiyka-source.drv':
         specified: sha256-N+WQcBP1NauCsNVNwumIOA3ARw24guf3LGktFWQdVD8=
            got:    sha256-h9dQ0DYq4tbh/F7qFgK4Z6eYOHF5TIBcbeepW56gaqQ=
error: 1 dependencies of derivation '/nix/store/by1i3p6lbb6xfzhbxn7f49l74c0hjh2p-python3.11-build123d-0.5.0.drv' failed to build

@erooke erooke force-pushed the build123d branch 2 times, most recently from 0e152ad to b625e72 Compare October 1, 2024 14:23
@erooke
Copy link
Contributor Author

erooke commented Oct 1, 2024

Rebased on top of current main. Removed ezdxf expression thanks to @adisbladis packaging it upstream.

Thanks for working on packaging this!

When I try to run nix run github:erooke/cq-flake/build123d#build123d, I get the following error:

error: hash mismatch in fixed-output derivation '/nix/store/wi140b0ph74rzp4dxkyss4cyz90wiyka-source.drv':
         specified: sha256-N+WQcBP1NauCsNVNwumIOA3ARw24guf3LGktFWQdVD8=
            got:    sha256-h9dQ0DYq4tbh/F7qFgK4Z6eYOHF5TIBcbeepW56gaqQ=
error: 1 dependencies of derivation '/nix/store/by1i3p6lbb6xfzhbxn7f49l74c0hjh2p-python3.11-build123d-0.5.0.drv' failed to build

No problem! I am not 100% sure what caused this, looks like they changed what the v0.5.0 tag pointed to. I just bumped the version to 0.7.0 and that problem has gone away. The build now seems to be broken in a different way. I hope to have to time to figure it out soon™. For now demoting the PR to a draft.

@erooke erooke changed the title Add build123d v0.5.0 Add build123d v0.7.0 Oct 1, 2024
@erooke erooke marked this pull request as draft October 1, 2024 14:28
@erooke
Copy link
Contributor Author

erooke commented Oct 2, 2024

Well everything builds now. Had to include the ezdxf expression for the time being as updating the flake blew it all up.

Both build123d and ocpsvg have to disable the nix pythonRuntimeDepsCheck as nix cannot determine that cadquery-ocp is installed. Not really sure how to fix this properly right now.

`mumps` has been packaged upstream. Going to try and use that now.
cq-editor requires an older version of qtconsole than is currently
packaged in nixpkgs
cq-editor requires spyder major version 5, nixpkgs has moved on to 6.
@erooke erooke marked this pull request as ready for review October 2, 2024 22:18
@erooke
Copy link
Contributor Author

erooke commented Oct 2, 2024

Alright this is as far as I'm going to take this for now. Everything seems to be working.

Bumping the nixpkgs brings with it 3 packages we do not need to write expressions for:

  • ezdxf
  • mumps
  • casadi

In exchange we need to roll back 3 packages:

  • spyder
  • spyder-kernels
  • qtconsole

Rolling back is substantially easier than trying to manage our own expressions for mumps and casadi. So I bumped nixpkgs. This PR has gotten rather large because of that. I can split this pr if it makes reviewing easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package build123d
3 participants