summaryrefslogtreecommitdiffstats
path: root/pkgs/development/cuda-modules/tensorrt/fixup.nix
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2024-04-18 20:10:59 -0400
committerGitHub <noreply@github.com>2024-04-18 20:10:59 -0400
commitc66994ce1c1d153ac86f37bcc7a0b3b1b3281497 (patch)
tree7ac3dc07c3b8f47ee1d4342e30acc4e12f11efa8 /pkgs/development/cuda-modules/tensorrt/fixup.nix
parentcaaff6c448501176ee469f2c5db3203bbc5f5d9a (diff)
parent6208368a822cf27adfc7b743e3be6d96ebe91095 (diff)
Merge pull request #301416 from ConnorBaker/feat/cudaPackages-lessons-learned-from-cross-compilation-attempt
cuda-modules: apply lessons learned from cross-compilation attempts
Diffstat (limited to 'pkgs/development/cuda-modules/tensorrt/fixup.nix')
-rw-r--r--pkgs/development/cuda-modules/tensorrt/fixup.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/cuda-modules/tensorrt/fixup.nix b/pkgs/development/cuda-modules/tensorrt/fixup.nix
index 3615284fb080..42359aedac11 100644
--- a/pkgs/development/cuda-modules/tensorrt/fixup.nix
+++ b/pkgs/development/cuda-modules/tensorrt/fixup.nix
@@ -1,12 +1,12 @@
{
cudaVersion,
final,
- hostPlatform,
lib,
mkVersionedPackageName,
package,
patchelf,
requireFile,
+ stdenv,
...
}:
let
@@ -17,6 +17,7 @@ let
strings
versions
;
+ inherit (stdenv) hostPlatform;
# targetArch :: String
targetArch = attrsets.attrByPath [ hostPlatform.system ] "unsupported" {
x86_64-linux = "x86_64-linux-gnu";