homepage-dashboard: use subshell instead of pushd/popd

I find less state easier to reason about.
This commit is contained in:
Bjørn Forsman
2025-01-06 18:12:35 +01:00
parent 349b7f8aed
commit a137aa33cb
+1 -3
View File
@@ -78,9 +78,7 @@ buildNpmPackage rec {
# This patch ensures that the cache implementation respects the env
# variable `HOMEPAGE_CACHE_DIR`, which is set by default in the
# wrapper below.
pushd $out
patch -p1 <${./prerender_cache_path.patch}
popd
(cd "$out" && patch -p1 <${./prerender_cache_path.patch})
makeWrapper $out/share/homepage/server.js $out/bin/homepage \
--set-default PORT 3000 \