dream2nix/overrides/python/nvidia-cublas-cu12/remove-nvidia-init.nix

11 lines
240 B
Nix

{
config,
lib,
...
}: {
mkDerivation.postFixup =
# prevents conflicts in nixpkgs buildEnv for python
lib.mkIf (lib.hasSuffix ".whl" config.mkDerivation.src)
"rm $out/lib/*/site-packages/nvidia/__pycache__/__init__.*";
}