guix/run_guix_daemon.sh
Tomas Cech 033fd96253 - use wrapper for running daemon and alter service file to use it
- if there is new daemon available - use it
  - if there is not, use the one from this package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guix?expand=0&rev=8
2018-02-20 22:24:37 +00:00

10 lines
363 B
Bash

#!/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
exec "$BINARY" --build-users-group=guixbuild