2018-02-20 23:24:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# if there is newer Guix daemon compiled by `guix pull`, use it
|
|
|
|
if [ -x /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon ]; then
|
|
|
|
BINARY=/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon
|
|
|
|
else
|
|
|
|
# otherwise use the one installed with our package
|
|
|
|
BINARY=/usr/bin/guix-daemon
|
2018-02-21 08:28:43 +01:00
|
|
|
fi
|
|
|
|
|
2018-02-20 23:24:37 +01:00
|
|
|
exec "$BINARY" --build-users-group=guixbuild
|