fix(nixery): use set-default for setting WEB_DIR

Makes it possible for users to still override this using an envvar.

Relates to nixery#166

Change-Id: Ief2925e03cf2e4351bc38554bf553c8ee259f1f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11045
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Vincent Ambo 2024-02-28 15:54:32 +03:00 committed by clbot
parent 46249cc587
commit bc06e4d99c

View file

@ -59,7 +59,7 @@ depot.nix.readTree.drvTargets rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/server \ wrapProgram $out/bin/server \
--set WEB_DIR "${nixery-web}" \ --set-default WEB_DIR "${nixery-web}" \
--prefix PATH : ${nixery-prepare-image}/bin --prefix PATH : ${nixery-prepare-image}/bin
''; '';