From 2ba6d6fb94459db8388dc82d7e4671b7b86b805f Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Tue, 27 Jun 2023 06:36:54 +0300 Subject: [PATCH] lemmy-ui: write version to correct file --- pkgs/servers/web-apps/lemmy/ui.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/servers/web-apps/lemmy/ui.nix b/pkgs/servers/web-apps/lemmy/ui.nix index 65076eaa89e4..3377b54c861f 100644 --- a/pkgs/servers/web-apps/lemmy/ui.nix +++ b/pkgs/servers/web-apps/lemmy/ui.nix @@ -64,6 +64,7 @@ mkYarnPackage { export HOME=$PWD/yarn_home ln -sf $PWD/node_modules $PWD/deps/lemmy-ui/ + echo 'export const VERSION = "${version}";' > $PWD/deps/lemmy-ui/src/shared/version.ts yarn --offline build:prod ''; @@ -74,10 +75,6 @@ mkYarnPackage { cp -R ./node_modules $out ''; - postInstall = '' - echo 'export const VERSION = "${version}";' > $out/libexec/lemmy-ui/deps/lemmy-ui/src/shared/version.ts - ''; - distPhase = "true"; passthru.updateScript = ./update.sh;