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:
eljamm
2026-05-16 12:00:30 +02:00
parent a1e3d253a1
commit 17c5d16ed0
+4 -4
View File
@@ -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/";