fmd-server: fix darwin
by not copying ui files to `/build` (since it doesn't exist on that platform), and instead copying them relative to `web`, before the build.
This commit is contained in:
@@ -35,6 +35,10 @@ buildGoModule (
|
||||
|
||||
vendorHash = "sha256-cFIg9mOSQbrYHW4kg4aTeTaF+gy1jNpAlg8qepb81Jc=";
|
||||
|
||||
preBuild = ''
|
||||
cp -r ${ui}/${ui.distRoot} web/
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "version";
|
||||
|
||||
@@ -74,10 +78,6 @@ buildGoModule (
|
||||
'';
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
cp -r ${ui}/${ui.distRoot} /build/source/web/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Server to communicate with the FindMyDevice app and save the latest (encrypted) location";
|
||||
homepage = "https://fmd-foss.org/";
|
||||
|
||||
Reference in New Issue
Block a user