-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
base: master
Are you sure you want to change the base?
freecad: add ifc support #330190
Conversation
Just a heads up |
Thanks, we shouldn't step too much into each other shoes hopefully ;-) |
bad8c88
to
2014cd1
Compare
2014cd1
to
5d8f6e6
Compare
4259d7b
to
09d03a4
Compare
|
09d03a4
to
c48fb6a
Compare
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). |
pkgs/by-name/fr/freecad/package.nix
Outdated
@@ -210,6 +215,14 @@ stdenv.mkDerivation (finalAttrs: { | |||
mechanical engineering and architecture. Whether you are a hobbyist, a | |||
programmer, an experienced CAD user, a student or a teacher, you will feel | |||
right at home with FreeCAD. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole string should be in a README.md file, instead of cluttering the stdout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for educating me on the problem about the configuration via input parameters. But, to be honest, I don't understand what your suggestion is. How should I implement optional ifcopenshell support? Is my code ok or is there a better way to do it?
I think all packages should just do that
All packages can't do that. Indeed no package can do that.
Here I'm speaking specifically about documenting in longDescription so that it appears in search.nixos.org (I feel like we are mixing this with the ifcSupport
option maybe?). Are you saying that there is no way to document the different options of a package there and that people do need to check the source code to learn about the customization possibilities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so that it appears in search.nixos.org
It looks like a deviation of purpose of longDescription
.
This field describes the software, not the input parameters of the build script.
Further, it is not "a field to be shown in search.nixos.org engine".
Further, the discoverability of Nixpkgs is very problematic, and such workaround is far from helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we are mixing two orthogonal topics here : the issue you linked is about nixos options installing packages under the hood. Here I'm talking about package options that changes the derivation itself. These options are available for nix/nixpkgs itself, not only for nixos. Both are kinda related yes, but not entirely.
I agree longDescription
was probably not meant for that, but in my opinion it's still better than nothing. I'd argue to keep this commit , but as you are set on removing this, I'll amend it and put this in a README.
c48fb6a
to
d1626fb
Compare
@AndersonTorres I added a README. For the option, I see no alternative right now :-) |
Description of changes
This PR adds optional ifc support with ifcopenshell.
It depends on #312381 (fix ifcopenshell build)
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.