cudaPackages.writeGpuTestPython: support structured attributes

Assisted-by: Pi (gpt-6.2-sol)
This commit is contained in:
Ben Siraphob
2026-11-22 16:53:06 -05:00
parent 8ca357ca54
commit 7eecd60faf

View File

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