···
···
google-cloud-artifact-registry,
···
-
hash = "sha256-JsciaNN1l3Ldty8dB2meRXWz62JdLRXeG09b7PNrQx4=";
gpu-stats = rustPlatform.buildRustPackage {
sourceRoot = "${src.name}/gpu_stats";
-
cargoHash = "sha256-q8csheytw57C6+wPPaANkMkW1Smoo+IViiA6Cdrag4Q=";
···
nativeInstallCheckInputs = [
-
versionCheckProgram = "${placeholder "out"}/bin/gpu_stats";
versionCheckProgramArg = "--version";
···
-
wandb-core = buildGoModule rec {
sourceRoot = "${src.name}/core";
-
# x86_64-darwin fails with:
-
# "link: duplicated definition of symbol dlopen, from github.com/ebitengine/purego and github.com/ebitengine/purego"
-
# This is fixed in purego 0.8.3, but wandb-core uses 0.8.2, so we pull in the fix here.
-
patches = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
-
url = "https://github.com/ebitengine/purego/commit/1638563e361522e5f63511d84c4541ae1c5fd704.patch";
-
extraPrefix = "vendor/github.com/ebitengine/purego/";
-
# These are not vendored by wandb-core
-
"vendor/github.com/ebitengine/purego/.github/workflows/test.yml"
-
"vendor/github.com/ebitengine/purego/internal/fakecgo/gen.go"
-
hash = "sha256-GoT/OL6r3rJY5zoUyl3kGzSRpX3PoI7Yjpe7oRb0cFc=";
# hardcode the `gpu_stats` binary path.
-
substituteInPlace pkg/monitor/gpuresourcemanager.go \
'cmdPath, err := getGPUCollectorCmdPath()' \
'cmdPath, err := "${lib.getExe gpu-stats}", error(nil)'
···
nativeInstallCheckInputs = [
···
(replaceVars ./hardcode-git-path.patch {
-
# Hard-code the path to the `wandb-core` binary in the code.
-
substituteInPlace wandb/util.py \
-
'bin_path = pathlib.Path(__file__).parent / "bin" / "wandb-core"' \
-
'bin_path = pathlib.Path("${lib.getExe wandb-core}")'
# Prevent the install script to try building and embedding the `gpu_stats` and `wandb-core`
···
google-cloud-artifact-registry