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

freecad: add ifc support #330190

Merged
merged 1 commit into from
Jan 18, 2025
Merged

freecad: add ifc support #330190

merged 1 commit into from
Jan 18, 2025

Conversation

autra
Copy link
Contributor

@autra autra commented Jul 26, 2024

Description of changes

This PR adds optional ifc support with ifcopenshell.

It depends on #312381 (fix ifcopenshell build)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 26, 2024
@luzpaz
Copy link
Contributor

luzpaz commented Sep 24, 2024

Just a heads up

@autra
Copy link
Contributor Author

autra commented Sep 24, 2024

Thanks, we shouldn't step too much into each other shoes hopefully ;-)

@autra autra force-pushed the freecad_ifc_support branch from bad8c88 to 2014cd1 Compare October 6, 2024 18:05
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Oct 6, 2024
@autra autra force-pushed the freecad_ifc_support branch from 2014cd1 to 5d8f6e6 Compare October 11, 2024 12:00
@autra autra marked this pull request as ready for review October 11, 2024 12:00
@autra autra force-pushed the freecad_ifc_support branch 2 times, most recently from 4259d7b to 09d03a4 Compare October 23, 2024 15:01
@autra
Copy link
Contributor Author

autra commented Oct 23, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 330190


x86_64-linux

@autra autra force-pushed the freecad_ifc_support branch from 09d03a4 to c48fb6a Compare October 24, 2024 21:48
@autra
Copy link
Contributor Author

autra commented Oct 24, 2024

This is now ready. I took the opportunity to document the different options so that they appear in https://search.nixos.org/ (I hope it's the correct way, if it is, I think all packages should just do that).

@AndersonTorres
Copy link
Member

I think all packages should just do that

All packages can't do that. Indeed no package can do that.

This "configuration via input parameters" is too unstable and prone to errors.
#324199

Atemu is experimenting with the module system in #312432 to provide a better experience.

@autra autra force-pushed the freecad_ifc_support branch from c48fb6a to d1626fb Compare October 30, 2024 15:06
@autra
Copy link
Contributor Author

autra commented Oct 30, 2024

@AndersonTorres I added a README. For the option, I see no alternative right now :-)

@autra autra requested a review from AndersonTorres December 20, 2024 09:47
@autra
Copy link
Contributor Author

autra commented Dec 20, 2024

@gebner @AndersonTorres what you guys think about this now?

@AndersonTorres
Copy link
Member

Rebase.

@autra autra force-pushed the freecad_ifc_support branch from d1626fb to 79d0fea Compare December 20, 2024 13:46
@autra
Copy link
Contributor Author

autra commented Dec 20, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 330190

@autra
Copy link
Contributor Author

autra commented Dec 20, 2024

Rebase.

Done.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 21, 2024
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 330190

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know it was possible/useful to add a README.md file in the package directory.

Diff LGTM though

@autra
Copy link
Contributor Author

autra commented Jan 3, 2025

I didn't know it was possible/useful to add a README.md file in the package directory.

I don't think it does anything though, does it? Or maybe I misunderstood?

@GaetanLepage
Copy link
Contributor

I don't think it does anything though, does it? Or maybe I misunderstood?

I guess it doesn't

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Jan 3, 2025
@autra autra force-pushed the freecad_ifc_support branch from 79d0fea to aa7161c Compare January 16, 2025 21:03
Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GaetanLepage
Copy link
Contributor

Maybe add

passthru = {
  tests = {
    withIfcSupport = freecad.override { ifcSupport = true; };
  };
};

@autra
Copy link
Contributor Author

autra commented Jan 17, 2025

Maybe add

passthru = {
  tests = {
    withIfcSupport = freecad.override { ifcSupport = true; };
  };
};

The point is just to compile it once with ifc support during the test phase?

@GaetanLepage
Copy link
Contributor

The point is just to compile it once with ifc support during the test phase?

Exactly

@autra autra force-pushed the freecad_ifc_support branch from aa7161c to 621ff02 Compare January 18, 2025 16:46
@autra
Copy link
Contributor Author

autra commented Jan 18, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 330190


x86_64-linux

@autra
Copy link
Contributor Author

autra commented Jan 18, 2025

Updated @GaetanLepage @AndersonTorres

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Can you please squash everything in a single commit though ?

@autra autra force-pushed the freecad_ifc_support branch from 621ff02 to 64477a8 Compare January 18, 2025 22:03
@autra
Copy link
Contributor Author

autra commented Jan 18, 2025

Changes look good. Can you please squash everything in a single commit though ?

oups, forgot to squash my fixups indeed. Done now.

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 330190

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thanks @autra !

@GaetanLepage GaetanLepage merged commit c6b7c70 into NixOS:master Jan 18, 2025
25 of 27 checks passed
@autra
Copy link
Contributor Author

autra commented Jan 18, 2025

Thanks for the reviews @GaetanLepage @AndersonTorres :-)

@autra autra deleted the freecad_ifc_support branch January 18, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 12.approvals: 2 This PR was reviewed and approved by two reputable people
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants