about summary refs log tree commit diff
path: root/pkgs/build-support/add-driver-runpath/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/add-driver-runpath/default.nix')
-rw-r--r--pkgs/build-support/add-driver-runpath/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/add-driver-runpath/default.nix b/pkgs/build-support/add-driver-runpath/default.nix
index 08547a4453c5..56026b1fc908 100644
--- a/pkgs/build-support/add-driver-runpath/default.nix
+++ b/pkgs/build-support/add-driver-runpath/default.nix
@@ -5,7 +5,7 @@ stdenv.mkDerivation {
 
   # Named "opengl-driver" for legacy reasons, but it is the path to
   # hardware drivers installed by NixOS
-  driverLink = "/run/opengl-driver" + lib.optionalString stdenv.isi686 "-32";
+  driverLink = "/run/opengl-driver" + lib.optionalString stdenv.hostPlatform.isi686 "-32";
 
   buildCommand = ''
     mkdir -p $out/nix-support