Loading nixos/modules/services/web-apps/lemmy.nix +1 −1 Original line number Diff line number Diff line Loading @@ -210,7 +210,7 @@ in root * ${cfg.ui.package}/dist file_server } handle_path /static/${cfg.ui.package.passthru.commit_sha}/* { handle_path /static/${cfg.ui.package.version}/* { root * ${cfg.ui.package}/dist file_server } Loading pkgs/servers/web-apps/lemmy/ui.nix +14 −20 Original line number Diff line number Diff line Loading @@ -18,12 +18,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "lemmy-ui"; version = pinData.uiVersion; src = with finalAttrs; fetchFromGitHub { src = fetchFromGitHub { owner = "LemmyNet"; repo = "lemmy-ui"; rev = version; tag = finalAttrs.version; fetchSubmodules = true; hash = pinData.uiHash; }; Loading @@ -48,20 +46,17 @@ stdenvNoCC.mkDerivation (finalAttrs: { buildPhase = '' runHook preBuild pnpm build:prod pnpm run prebuild:prod # Required to pass a custom value for COMMIT_HASH, as the normal # `pnpm build:prod` tries to derive its value by running `git`. # This value is only injected into the templated asset URLs for cache invalidation, # so we don't really need a commit hash here, just a value that changes on every # update. pnpm exec webpack --env COMMIT_HASH="${finalAttrs.version}" --mode=production runHook postBuild ''; # installPhase = '' # runHook preInstall # mkdir -p $out/{bin,lib/${finalAttrs.pname}} # mv {dist,node_modules} $out/lib/${finalAttrs.pname} # runHook postInstall # ''; preInstall = '' mkdir $out cp -R ./dist $out Loading @@ -81,7 +76,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { passthru = { updateScript = ./update.py; tests.lemmy-ui = nixosTests.lemmy; commit_sha = finalAttrs.src.rev; }; meta = { Loading Loading
nixos/modules/services/web-apps/lemmy.nix +1 −1 Original line number Diff line number Diff line Loading @@ -210,7 +210,7 @@ in root * ${cfg.ui.package}/dist file_server } handle_path /static/${cfg.ui.package.passthru.commit_sha}/* { handle_path /static/${cfg.ui.package.version}/* { root * ${cfg.ui.package}/dist file_server } Loading
pkgs/servers/web-apps/lemmy/ui.nix +14 −20 Original line number Diff line number Diff line Loading @@ -18,12 +18,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "lemmy-ui"; version = pinData.uiVersion; src = with finalAttrs; fetchFromGitHub { src = fetchFromGitHub { owner = "LemmyNet"; repo = "lemmy-ui"; rev = version; tag = finalAttrs.version; fetchSubmodules = true; hash = pinData.uiHash; }; Loading @@ -48,20 +46,17 @@ stdenvNoCC.mkDerivation (finalAttrs: { buildPhase = '' runHook preBuild pnpm build:prod pnpm run prebuild:prod # Required to pass a custom value for COMMIT_HASH, as the normal # `pnpm build:prod` tries to derive its value by running `git`. # This value is only injected into the templated asset URLs for cache invalidation, # so we don't really need a commit hash here, just a value that changes on every # update. pnpm exec webpack --env COMMIT_HASH="${finalAttrs.version}" --mode=production runHook postBuild ''; # installPhase = '' # runHook preInstall # mkdir -p $out/{bin,lib/${finalAttrs.pname}} # mv {dist,node_modules} $out/lib/${finalAttrs.pname} # runHook postInstall # ''; preInstall = '' mkdir $out cp -R ./dist $out Loading @@ -81,7 +76,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { passthru = { updateScript = ./update.py; tests.lemmy-ui = nixosTests.lemmy; commit_sha = finalAttrs.src.rev; }; meta = { Loading