-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
libucl: init at 0.8.1 #89408
libucl: init at 0.8.1 #89408
Conversation
The library seems to have afew configure options that are set to There are
See configure.ac. |
That's a nice pointer, I'll look into this a bit later. |
Signatures support seems out of reach at least for this version of the package: vstakhov/libucl#203 |
6f933d2
to
fbac78e
Compare
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 will make your future diff after vstakhov/libucl#203 will be resolved even cleaner.
BTW for extra credit, assuming you are fluent with Nix, you could use an attribute set in the inputs instead of those multiple enableThis
disableThat
flags and use https://nixos.org/nixpkgs/manual/#function-library-lib.strings.enableFeature
Do you mean: { urls = true;
, regex = false;
, ...} ? |
No. Maybe start like this: { stdenv
, ...
, ...
, features ? {
urls = true;
regex = true;
}
}: And then when setting |
, curl | ||
, lua | ||
, openssl | ||
, enableUrls ? false |
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.
Why disable by default?
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'm reflecting how this is set when you build from source. I'm not familiar with this lib, so I'm assuming all the non default options are extras.
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.
Could it be they are disabled if the necessary deps are not found? It's a common practice to make the build not fail but disable optional features if they are not explicitly enabled.
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.
Maybe yeah. I'm really unsure on what approach to take here. On the other end of the spectrum, enabling everything, seems a bit overkill too.
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.
@jpotier I'm making these suggestion because I think they are cool but you don't have to go with them. I just sometimes wish to encourage contributors not to afraid of writing nontrivial Nix expressions into packages. I suggest this under the hope that a committer won't object to add such a "complicated" Nix code for a simple library - due to a maintenance reasoning. See e.g: #87940 (comment) .
Oh :/ Too bad your changes weren't merged. I think using the language as much as possible is good, and I definitely like you pushing for these changes I made, and I think they make sense. Of course, these sort of changes should be evaluated on a case-by-case basis. |
Don't worry I got what I wanted at #87949 :). |
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.
.
@GrahamcOfBorg build libucl |
Alright, I guess this is ready for merging |
Motivation for this change
libucl is a dependency for Hikari (#89414)
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)