Without the change `tests` eval failed with missing attribute as:
$ nix build --no-link -f. owncast.tests
$ error: attribute 'testOwncast' missing
39| passthru.tests.owncast = nixosTests.testOwncast;
| ^
40|
From what I can see `nixos/tests/all-tests.nix` never had a
`testOwncast` attribute. Let's use `owncast` one.
The `bash` and `which` wrapper dependencies were mistakenly removed last
package update.
The package works when run manually since you already have bash and
which in your path. Only when isolated in systemd does the issue emerge.
The entrypoint script would ensure a symlink to
the nix store exists in the state directory.
The script would fail when trying to overwrite an
existing symlink.
Steps to trigger the issue:
* Install owncast
* Upgrade owncast
* Garbage collect the store
* Upgrade owncast
I chose not to use the -f option in `ln`, as this is
more explicit.