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
systemd: improve unit script drv naming #43534
Conversation
@GrahamcOfBorg test gocd-server openldap firewall opensmtpd munin taskserver boot peerflix flannel initrd-network |
Success on aarch64-linux (full log) Attempted: tests.openldap, tests.firewall, tests.opensmtpd, tests.taskserver, tests.boot, tests.peerflix The following builds were skipped because they don't evaluate on aarch64-linux: tests.gocd-server, tests.munin, tests.flannel, tests.initrd-network Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: systemd Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: systemd Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: systemd Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: tests.gocd-server, tests.openldap, tests.firewall, tests.opensmtpd, tests.munin, tests.taskserver, tests.boot, tests.peerflix The following builds were skipped because they don't evaluate on x86_64-linux: tests.flannel, tests.initrd-network Partial log (click to expand)
|
opensmtpd and taskserver tests worked fine here, so I'm guessing that's a fluke. |
👍 on the change in principle, but I wonder if we should keep the |
That's a possibility, although I think it's somewhat redundant given that the names already contain |
👍 for this, I'd also prefer having it prefixed with |
Also store scripts directly in the nix store rather than having the superfluous /bin/ tree.
db3952f
to
46b3aa0
Compare
done! |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: systemd Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: systemd Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: systemd Partial log (click to expand)
|
@GrahamcOfBorg test gocd-server openldap firewall opensmtpd munin taskserver boot peerflix flannel initrd-network |
Failure on aarch64-linux (full log) Attempted: tests.openldap, tests.firewall, tests.opensmtpd, tests.taskserver, tests.boot, tests.peerflix The following builds were skipped because they don't evaluate on aarch64-linux: tests.gocd-server, tests.munin, tests.flannel, tests.initrd-network Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: tests.gocd-server, tests.openldap, tests.firewall, tests.opensmtpd, tests.munin, tests.taskserver, tests.boot, tests.peerflix The following builds were skipped because they don't evaluate on x86_64-linux: tests.flannel, tests.initrd-network Partial log (click to expand)
|
Motivation for this change
I don't like having the nix store littered with derivations that all have the name "unit-script", containing nothing but
bin/useful-name-here
. This is a bit of an RFC since I'm not sure whether this might break any further things. I've run a few nixos tests with this change as a sanity check, but this could probably do with a run of all the tests and some more experienced eyes looking at it.cc @grahamc since you expressed interest in the question
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)