fix: make buildbot-profiler build

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-10-27 22:09:05 +01:00
parent ed48f3c5cc
commit 6c677bf795
2 changed files with 7738 additions and 0 deletions

View file

@ -2,8 +2,13 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# Because python3Packages.buildbot and pkgs.buildbot are colliding...
buildbotPackages,
setuptools, setuptools,
wheel, wheel,
fetchYarnDeps,
yarnConfigHook,
nodejs
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -18,11 +23,34 @@ buildPythonPackage rec {
hash = "sha256-r56Cze0v3gKWKJwRy0BUYz5z8d0g3jerCIu3KreNxUc="; hash = "sha256-r56Cze0v3gKWKJwRy0BUYz5z8d0g3jerCIu3KreNxUc=";
}; };
postPatch = ''
# Remove some Python 2.
sed -i '6d' setup.py
# Copy the yarn.lock for further fixups.
cp ${./profiler/yarn.lock} yarn.lock
chmod +w yarn.lock
'';
yarnOfflineCache = fetchYarnDeps {
yarnLock = ./profiler/yarn.lock;
hash = "sha256-u3v8Tf5RKOaOARbntqjPGlav5uqGCr/lQ1sF6xPJBmQ=";
};
nativeBuildInputs = [
yarnConfigHook
# Needed for executing package.json scripts
nodejs
];
build-system = [ build-system = [
setuptools setuptools
wheel wheel
]; ];
dependencies = [
buildbotPackages.buildbot-pkg
];
pythonImportsCheck = [ pythonImportsCheck = [
"buildbot_profiler" "buildbot_profiler"
]; ];

7710
nix/profiler/yarn.lock Normal file

File diff suppressed because it is too large Load diff