mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 17:00:33 +00:00
2.47.0 includes the fix for CVE-2026-111883. Changelog: https://github.com/locustio/locust/releases/tag/2.47.0 https://github.com/locustio/locust/releases/tag/2.46.7 https://github.com/locustio/locust/releases/tag/2.46.6 https://github.com/locustio/locust/releases/tag/2.46.5 https://github.com/locustio/locust/releases/tag/2.46.4
37 lines
632 B
Nix
37 lines
632 B
Nix
{
|
|
stdenv,
|
|
yarn-berry,
|
|
nodejs,
|
|
version,
|
|
src,
|
|
lib,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "locust-ui";
|
|
inherit version src;
|
|
|
|
missingHashes = ./missing-hashes.json;
|
|
yarnOfflineCache = yarn-berry.fetchYarnBerryDeps {
|
|
inherit (finalAttrs) src missingHashes;
|
|
hash = "sha256-68qt7SLeY2r5s1LnNqYCR56KjdH4Y93T+NlTet7oMR8=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
})
|