Add some Module examples#799
Conversation
46d9e08 to
9db644c
Compare
|
Nice! If you want to rename the bash commit properly, I could cherry-pick/merge that one. For the mcl stuff, needs tabs instead of spaces. |
d6f782d to
675e3a5
Compare
|
Making tests work properly under NixOS took me a bit longer than anticipated. |
|
Overall the whole thing fails, but if the shebang commits and other bits are ready to be cherry-picked, maybe put those in a separate PR so I can see it passes and I can pull those in early. |
|
(Doesn't need to pass the race tests, just the basic and shell.) |
Sorry, but i think it's not ready yet afterall. There are many more cases of FHS filepaths. |
|
FYI: I cherry-picked/merged/etc most of this. You may wish to rebase at some point or open a new PR. |
8a097a9 to
d6c0127
Compare
|
Can you move this to the modules/contrib/ dir please? |
| } | ||
| } | ||
|
|
||
| include lists() |
There was a problem hiding this comment.
FYI: side effects in modules won't be allowed. The compiler will complain if you try and import this module.
| $source_security = { "distribution" => $distribution + "-security", "url" => "https://security.debian.org/debian-security", "components" => $default_components, } | ||
|
|
||
| $data = struct{ | ||
| sources => [$source_default, $source_default_updates, $source_security,], |
37fdda9 to
5f4ae05
Compare
3221a93 to
4ad2b9a
Compare
|
Closing b/c draft. Feel free to resubmit when ready. |
I will be adding some more example modules here that I am using, which I can share.
This is a Work In Progress for now and I'm happy to improve upon these.
The changes of this MR should remain limited to the
modules/directory.