about summary refs log tree commit diff
path: root/pkgs/tools/misc/grub4dos/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/grub4dos/default.nix')
-rw-r--r--pkgs/tools/misc/grub4dos/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/grub4dos/default.nix b/pkgs/tools/misc/grub4dos/default.nix
index 8b78c29defe7..b18298e37b66 100644
--- a/pkgs/tools/misc/grub4dos/default.nix
+++ b/pkgs/tools/misc/grub4dos/default.nix
@@ -1,8 +1,8 @@
 { lib, stdenv, fetchFromGitHub, nasm }:
 
 let arch =
-  if stdenv.isi686 then "i386"
-  else if stdenv.isx86_64 then "x86_64"
+  if stdenv.hostPlatform.isi686 then "i386"
+  else if stdenv.hostPlatform.isx86_64 then "x86_64"
   else throw "Unknown architecture";
 in stdenv.mkDerivation {
   pname = "grub4dos";