cuda-modules: use stdenv instead of backendStdenv for *Platform access

Changed files
+6 -18
pkgs
development
cuda-modules
cuda-library-samples
cuda-samples
cutensor
generic-builders
tensorrt
+1 -6
pkgs/development/cuda-modules/cuda-library-samples/extension.nix
···
-
{
-
lib,
-
# NOTE: We would use backendStdenv to get the hostPlatform, but it's not available in the callPackage context
-
# we're using to call this file.
-
stdenv,
-
}:
+
{ lib, stdenv }:
let
inherit (stdenv) hostPlatform;
-2
pkgs/development/cuda-modules/cuda-samples/extension.nix
···
{
cudaVersion,
lib,
-
# NOTE: We would use backendStdenv to get the hostPlatform, but it's not available in the callPackage context
-
# we're using to call this file.
stdenv,
}:
let
+2 -1
pkgs/development/cuda-modules/cuda-samples/generic.nix
···
hash,
lib,
pkg-config,
+
stdenv,
}:
let
inherit (lib) lists strings;
···
installPhase = ''
runHook preInstall
-
install -Dm755 -t $out/bin bin/${backendStdenv.hostPlatform.parsed.cpu.name}/${backendStdenv.hostPlatform.parsed.kernel.name}/release/*
+
install -Dm755 -t $out/bin bin/${stdenv.hostPlatform.parsed.cpu.name}/${stdenv.hostPlatform.parsed.kernel.name}/release/*
runHook postInstall
'';
-2
pkgs/development/cuda-modules/cutensor/extension.nix
···
flags,
lib,
mkVersionedPackageName,
-
# NOTE: We would use backendStdenv to get the hostPlatform, but it's not available in the callPackage context
-
# we're using to call this file.
stdenv,
}:
let
-2
pkgs/development/cuda-modules/flags.nix
···
cudaForwardCompat ? (config.cudaForwardCompat or true),
lib,
cudaVersion,
-
# NOTE: We cannot refer to backendStdenv as flags exists outside the fixed-point;
-
# otherwise, we would use that to get the hostPlatform.
stdenv,
# gpus :: List Gpu
gpus,
+1 -1
pkgs/development/cuda-modules/generic-builders/manifest.nix
···
sourceTypes
;
-
inherit (backendStdenv) hostPlatform;
+
inherit (stdenv) hostPlatform;
# Get the redist architectures for which package provides distributables.
# These are used by meta.platforms.
-2
pkgs/development/cuda-modules/generic-builders/multiplex.nix
···
lib,
cudaVersion,
flags,
-
# NOTE: We would use backendStdenv to get the hostPlatform, but it's not available in the callPackage context
-
# we're using to call this file (cudaPackages.callPackage).
stdenv,
# Expected to be passed by the caller
mkVersionedPackageName,
+2 -2
pkgs/development/cuda-modules/tensorrt/fixup.nix
···
{
-
backendStdenv,
cudaVersion,
final,
lib,
···
package,
patchelf,
requireFile,
+
stdenv,
...
}:
let
···
strings
versions
;
-
inherit (backendStdenv) hostPlatform;
+
inherit (stdenv) hostPlatform;
# targetArch :: String
targetArch = attrsets.attrByPath [ hostPlatform.system ] "unsupported" {
x86_64-linux = "x86_64-linux-gnu";