-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Less repetitiveness in Nix files #16
Conversation
Signed-off-by: Doron Behar <doron.behar@gmail.com>
Yep, this looks great 👍! Thank you very much 🙇♂️ I'll merge it right away. I wonder if the Have a nice day! 👋 |
That's a topic frequently discussed in the Nix ecosystem :) Basically the generalization of your question is: If a certain project includes a First of all, it is possible to configure your NixOS system while referring directly to pysequoia's flake.nix, and not to rely upon Nixpkgs' pysequoia's expression and possibly Nixpkgs' slow updates. However, this requires configuring your system with flakes support, and currently it is a bit tedious to do so, in terms of Nix coding. And in contrast, including pysequoia in Nixpkgs as it is included now, allows for easier integration with the rest of Nixpkgs, and for PRs touching pysequoia's dependent packages to change / patch pysequoia in conjunction with other packages in Nixpkgs. Also, you should remember that although flakes are so cool, they are still in an experimentation phase sort of (see this discourse thread and this RFC). Hence people don't want to make Nixpkgs a repository that relies on a flake enabled Nix to be fully functional. In the ideal future, perhaps projects like this will be included in Nixpkgs via a flake reference, and not via an almost copy pasted |
Hmm... so Is there a semi automated way to generate (Let's ignore flakes for the moment) Thanks! |
Correct, but not only that, it's the
I'm not aware of such a script as you describe, but you can of course craft some automating script by yourself if you really want to. Most people don't find the need to though, as these expressions change rarely, and in any case you have to go through the Nixpkgs PR and CI process. However, if you release a new version, for simple version bumps the Nix ecosystem has a lot to offer! The community runs a nixpkgs-update update bot that iterates all packages in Nixpkgs and updates the versions according to information it finds on GitHub, GitLab and Repology. The bot that runs it - Additionally, if you don't want to wait for Hence what I'd do instead of you is create a PR in Nixpkgs with the following commits:
I will be requested for a review automatically by |
Looks great! Thanks for taking the time to explain it all to me. As for the update please study the package.nix file as I've made some significant changes: dropped openssl and on MacOS added PCSC and removed nettle (as RustCrypto is used on that platform). It should make the package smaller :) |
Sure! I observed everything, and it all looks good. See you in Nixpkgs 🍻 . |
I think you mentioned this small concern regarding this repetitiveness, here it is fixed now.