slurm: fixup usage of NVML

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker
2025-10-22 13:14:22 -07:00
parent 6f0ca9e8af
commit 2e0c9f6131
2 changed files with 3 additions and 7 deletions
+3 -3
View File
@@ -34,7 +34,7 @@
# enable internal X11 support via libssh2
enableX11 ? true,
enableNVML ? config.cudaSupport,
nvml,
cudaPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -110,8 +110,8 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals enableNVML [
(runCommand "collect-nvml" { } ''
mkdir $out
ln -s ${lib.getDev nvml}/include $out/include
ln -s ${lib.getLib nvml}/lib/stubs $out/lib
ln -s ${lib.getOutput "include" cudaPackages.cuda_nvml_dev}/include $out/include
ln -s ${lib.getOutput "stubs" cudaPackages.cuda_nvml_dev}/lib/stubs $out/lib
'')
];
-4
View File
@@ -6852,10 +6852,6 @@ with pkgs;
sloc = nodePackages.sloc;
slurm = callPackage ../by-name/sl/slurm/package.nix {
nvml = cudaPackages.cuda_nvml_dev;
};
speedtest-cli = with python3Packages; toPythonApplication speedtest-cli;
splint = callPackage ../development/tools/analysis/splint {