20 lines
599 B
Nix
20 lines
599 B
Nix
{ prev }:
|
|
let
|
|
buildRedistHook = prev.runCommand "buildRedistHook.bash" { } ''
|
|
cp ${prev.path}/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash "$out"
|
|
chmod u+w "$out"
|
|
patch "$out" < ${./propagated-build-output-arrays.patch}
|
|
'';
|
|
in
|
|
prev.cudaPackages_12_9.overrideScope (
|
|
_cudaFinal: cudaPrev: {
|
|
buildRedist =
|
|
args:
|
|
(cudaPrev.buildRedist args).overrideAttrs (old: {
|
|
nativeBuildInputs = map (
|
|
input: if builtins.baseNameOf input == "buildRedistHook.bash" then buildRedistHook else input
|
|
) old.nativeBuildInputs;
|
|
});
|
|
}
|
|
)
|