mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] openlinkhub: install binary to $out/opt/OpenLinkHub (#536506)
This commit is contained in:
commit
c471d3dbc8
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue