Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
885 B
Nix
37 lines
885 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "nvidia-mig-parted";
|
|
version = "0.12.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NVIDIA";
|
|
repo = "mig-parted";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-B4vSNG3+qbUqCvEmBz+VUgrnvhNvCR74uvo4uo+bD/Q=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
excludedPackages = [
|
|
"cmd/nvidia-mig-manager"
|
|
"deployments/devel"
|
|
];
|
|
|
|
# Avoid undefined symbol: nvmlGpuInstanceGetComputeInstanceProfileInfoV
|
|
ldflags = [ "-extldflags=-Wl,-z,lazy" ];
|
|
|
|
meta = {
|
|
description = "MIG Partition Editor for NVIDIA GPUs";
|
|
homepage = "https://github.com/nvidia/mig-parted";
|
|
changelog = "https://github.com/NVIDIA/mig-parted/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jherland ];
|
|
mainProgram = "nvidia-mig-parted";
|
|
};
|
|
})
|