openlinkhub: install binary to $out/opt/OpenLinkHub

makes openlinkhub work out of the box, provided that `$out/opt/OpenLinkHub` is
copied to a mutable directory and run from there.

(cherry picked from commit dcc4fcf8ae)
This commit is contained in:
mikaeladev 2026-06-28 04:11:56 +01:00 committed by github-actions[bot]
commit 6511f4999a

View file

@ -37,10 +37,12 @@ buildGoModule (finalAttrs: {
runHook preInstall
install -Dm 644 -t $out/etc/udev/rules.d 99-openlinkhub.rules
install -Dm 755 -t $out/bin $GOPATH/bin/OpenLinkHub
install -Dm 755 -t $out/opt/OpenLinkHub $GOPATH/bin/OpenLinkHub
mkdir -p $out/opt/OpenLinkHub
cp -r {database,static,web} $out/opt/OpenLinkHub
cp -rt $out/opt/OpenLinkHub database static web
mkdir -p $out/bin
ln -st $out/bin $out/opt/OpenLinkHub/OpenLinkHub
runHook postInstall
'';