diff options
author | A1ca7raz <7345998+A1ca7raz@users.noreply.github.com> | 2024-02-25 01:46:51 +0800 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-02-25 18:39:23 +0100 |
commit | 3aa1a64bd26b09346ee2229ebda6b528f7a1e605 (patch) | |
tree | f416bfea7260e0516744e4fd5f27639fbd78ddfa /pkgs/servers/homepage-dashboard | |
parent | 2f82033153a0a8a080c97744659311712b5d2bd7 (diff) |
homepage-dashboard: move assets to share folder
Diffstat (limited to 'pkgs/servers/homepage-dashboard')
-rw-r--r-- | pkgs/servers/homepage-dashboard/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/servers/homepage-dashboard/default.nix b/pkgs/servers/homepage-dashboard/default.nix index fe1575000a2f0..cc79813d08ee4 100644 --- a/pkgs/servers/homepage-dashboard/default.nix +++ b/pkgs/servers/homepage-dashboard/default.nix @@ -49,17 +49,17 @@ buildNpmPackage rec { installPhase = '' runHook preInstall - mkdir -p $out - cp -r .next/standalone $out/bin - cp -r public $out/bin/public + mkdir -p $out/{share,bin} - mkdir -p $out/bin/.next - cp -r .next/static $out/bin/.next/static + cp -r .next/standalone $out/share/homepage/ + cp -r public $out/share/homepage/public - mv $out/bin/server.js $out/bin/homepage - chmod +x $out/bin/homepage + mkdir -p $out/share/homepage/.next + cp -r .next/static $out/share/homepage/.next/static - wrapProgram $out/bin/homepage \ + chmod +x $out/share/homepage/server.js + + makeWrapper $out/share/homepage/server.js $out/bin/homepage \ --set-default PORT 3000 \ --set-default HOMEPAGE_CONFIG_DIR /var/lib/homepage-dashboard |