impureWithCuda: fix gcc version (#2990)

* impureWithCuda: fix gcc version

* trufflehog: do not fail on unverified results
This commit is contained in:
Daniël de Kok 2025-02-04 17:01:59 +01:00 committed by GitHub
parent 88fd56f549
commit dd2bd5fdb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 10 deletions

View File

@ -16,3 +16,5 @@ jobs:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
with:
extra_args: --results=verified,unknown

View File

@ -94,8 +94,18 @@ mkShell {
( cd clients/python ; python -m pip install --no-dependencies -e . )
'';
postShellHook = ''
postShellHook =
''
unset SOURCE_DATE_EPOCH
export PATH=$PATH:~/.cargo/bin
export PATH=${cudaPackages.backendStdenv.cc}/bin:$PATH:~/.cargo/bin
''
# At various points in time, the latest gcc supported by CUDA differs
# from the default version in nixpkgs. A lot of the dependencies in
# the impure environment pull in the default gcc from nixpkgs, so we
# end up with the CUDA-supported gcc and the nixpkgs default gcc in
# the path. To ensure that we can build CUDA kernels, put the CUDA
# first in the path. It's a hack, but it works.
+ lib.optionalString withCuda ''
export PATH=${cudaPackages.backendStdenv.cc}/bin:$PATH
'';
}