{
  "name": "cuda",
  "build-options": {
    "no_debuginfo": true
  },
  "buildsystem": "simple",
  "cleanup": [
    "*"
  ],
  "build-commands": [
    "chmod u+x ./cuda.run",
    "./cuda.run --silent --toolkit --toolkitpath=$FLATPAK_DEST/cuda --no-opengl-libs --no-man-page --no-drm --tmpdir=$FLATPAK_BUILDER_BUILDDIR",
    "rm -r $FLATPAK_DEST/cuda/nsight-systems-*",
    "rm ./cuda.run"
  ],
  "sources": [
    {
      "type": "file",
      "only-arches": [
        "x86_64"
      ],
      "url": "https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda_12.9.1_575.57.08_linux.run",
      "sha256": "0f6d806ddd87230d2adbe8a6006a9d20144fdbda9de2d6acc677daa5d036417a",
      "dest-filename": "cuda.run"
    },
    {
      "type": "file",
      "only-arches": [
        "aarch64"
      ],
      "url": "https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda_12.9.1_575.57.08_linux_sbsa.run",
      "sha256": "64f47ab791a76b6889702425e0755385f5fa216c5a9f061875c7deed5f08cdb6",
      "dest-filename": "cuda.run"
    }
  ]
}
