Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
24 lines
729 B
Nix
24 lines
729 B
Nix
{
|
|
cudaVersion,
|
|
lib,
|
|
nvccCompatibilities,
|
|
pkgs,
|
|
stdenv,
|
|
stdenvAdapters,
|
|
}:
|
|
|
|
let
|
|
gccMajorVersion = nvccCompatibilities.${cudaVersion}.gccMaxMajorVersion;
|
|
cudaStdenv = stdenvAdapters.useLibsFrom stdenv pkgs."gcc${gccMajorVersion}Stdenv";
|
|
passthruExtra = {
|
|
# cudaPackages.backendStdenv.nixpkgsCompatibleLibstdcxx has been removed,
|
|
# if you need it you're likely doing something wrong. There has been a
|
|
# warning here for a month or so. Now we can no longer return any
|
|
# meaningful value in its place and drop the attribute entirely.
|
|
};
|
|
assertCondition = true;
|
|
in
|
|
|
|
# TODO: Consider testing whether we in fact use the newer libstdc++
|
|
|
|
lib.extendDerivation assertCondition passthruExtra cudaStdenv
|