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";
|
|
};
|
|
})
|