mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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)
42 lines
654 B
Nix
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
|
|
'';
|
|
})
|