Add nixgen package to quickly create development shells #211
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "nixgen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a simple
nixgenprogram that creates a flake.nix file with the specified packages or build dependencies for the specified packages. Example:The nixgen program is a standalone POSIX shell script which can be placed in any machine.
Tested a couple of shells and things seem to work as intended.
The only thing I don't like is that it leaves a trailing whitespace in the lists, but I think keeping things simple is better.
9a05fa35d7to6293a07b5bShould be fixed now
@ -0,0 +50,4 @@if [ "$mode" == "package" ]; thenpackages+="${packages+ }$1"elseinputsFrom+="${inputsFrom+ }$1"I think that we need
:+(${inputsFrom:+ }) since inputsFrom is defined (but empty). Otherwise, we'll have leading whitespace :DDamm, I tested
${foo:+ }on bash but wrote the wrong thing :D6293a07b5bto5e0209ba3a5e0209ba3ato5ff1b1343b