mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 12:19:57 +00:00
cudaPackages.writeGpuTestPython: support structured attributes
Assisted-by: Pi (gpt-6.2-sol)
This commit is contained in:
@@ -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" ];
|
||||
}
|
||||
)
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user