Files
nixpkgs/pkgs/by-name/ov/overlayed/webui.nix
Sefa Eyeoglu 496365ec6d treewide: adjust pnpm.fetchDeps parameter order
It is more common to specify hash as the last attribute of fetcher
function args. Let's move fetcherVersion right above hash for all
occurrences.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit a8c9a2aa3e)
2025-07-23 18:02:12 +02:00

42 lines
654 B
Nix

{
src,
meta,
version,
stdenv,
nodejs,
pnpm_9,
}:
stdenv.mkDerivation (finalAttrs: {
inherit version src meta;
pname = "overlayed-webui";
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) src pname version;
fetcherVersion = 1;
hash = "sha256-+yyxoodcDfqJ2pkosd6sMk77/71RDsGthedo1Oigwto=";
};
nativeBuildInputs = [
nodejs
pnpm_9.configHook
];
buildPhase = ''
runHook preBuild
cd apps/desktop
node --max_old_space_size=1024000 ./node_modules/vite/bin/vite.js build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r dist $out
runHook postInstall
'';
})