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
Nim packages #67878
Nim packages #67878
Conversation
This split makes it possible to use the Nimble tools without adding the Nim toolchain into an environment.
A Nixpkgs function for building Nimble packages and a script for generating package expressions.
if pkg.web.len > 0: | ||
echo(" website: " & pkg.web) | ||
|
||
+func json*(pkg: Package): JsonNode = |
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.
Might be worth contributing this upstream? :)
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.
Yes, I tried to format the patch for a clean PR, but I'd like to tinker a bit more before I do that.
There are over a thousands PRs pending, not feasible in this repo. |
Can I just ask what is going to happen to this PR? It looks fairly complete and it would be a shame to see all that work not get merged. |
@NickHu it was moved to a seperate flake-style repo, but is still a bit incomplete: https://github.com/nix-community/flake-nimble |
Motivation for this change
Repackage NImble packages using Nix.
This is yet another
mkDerivation
wrapper for yet another programing language and package manager.A utility is provided at
nix-generate-from-nimble
for generating a JSON package description from Nimble metatdata and a skeletondefault.nix
file.The first example package is an interpreter for the Spry language.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @peterhoeg @dom96