Files
nixpkgs/pkgs/development/python-modules/locust/webui.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
670 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
stdenv,
yarn-berry_4,
nodejs,
version,
src,
lib,
}:
let
yarn-berry = yarn-berry_4;
in
stdenv.mkDerivation (finalAttrs: {
pname = "locust-ui";
inherit version src;
missingHashes = ./missing-hashes.json;
yarnOfflineCache = yarn-berry.fetchYarnBerryDeps {
inherit (finalAttrs) src missingHashes;
hash = "sha256-FbKaU3wezuvcn98FOcUZbmoot/iHtmeStp4n0dNwFYA=";
};
nativeBuildInputs = [
yarn-berry
yarn-berry.yarnBerryConfigHook
nodejs
];
buildPhase = ''
runHook preBuild
yarn build
runHook postBuild
'';
dontNpmPrune = true;
postInstall = ''
mkdir -p $out/dist
cp -r dist/** $out/dist
'';
})