diff --git a/pkgs/development/cuda-modules/packages/writeGpuTestPython.nix b/pkgs/development/cuda-modules/packages/writeGpuTestPython.nix index ea7a52e6fe2c..694eabb67396 100644 --- a/pkgs/development/cuda-modules/packages/writeGpuTestPython.nix +++ b/pkgs/development/cuda-modules/packages/writeGpuTestPython.nix @@ -1,6 +1,7 @@ { lib, runCommand, + writeText, python3Packages, makeWrapper, writableTmpDirAsHomeHook, @@ -35,9 +36,8 @@ let "name" ] // { - inherit content; + contentPath = writeText "${name}.py" content; nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [ makeWrapper ]; - passAsFile = args.passAsFile or [ ] ++ [ "content" ]; } ) ''