Repository navigation
Find out what derivations are present in a lua file? #178
Unanswered
bertmuthalaly
asked this question in
Q&A
Replies: 1 comment
|
Hey Bert! Sorry for the long response time: life is busy. This seems like a reasonable feature request, but in the meantime, the way I can come up with off-hand is to do something like this (untested): Obviously not ergonomic, but the command implementation would do basically this. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi zombiezen! I'm playing with zb and enjoying it.
I'm working on a toy package manager for my personal machine.
Is there a good way to find out what derivations are present in a lua file?
I can't tell yet how to get a list of all the valid values I can put after the hash when invoking
zb build myfile.zb.lua#myderivation.zb eval only takes one argument - I thought I might be able to get away with
zb eval myfile.zb.lua -e '_G'for starters, butzb evalonly takes one argument. I also considered making the last expression in the Lua file an array of derivations, but that doesn't work either.I then considered looking at the zb store to figure out what derivations exist, but that doesn't solve my problem exactly, and in any case only works after the package manager has called zb build.
I've settled for parsing myfile.zb.lua myself to stay unblocked, but if you've got some time I would love to get your thoughts.
Thank you for the cool project!
Bert
All reactions