diff options
author | Joe Hermaszewski <git@monoid.al> | 2020-06-18 17:27:27 +0800 |
---|---|---|
committer | Joe Hermaszewski <git@monoid.al> | 2020-06-18 17:27:27 +0800 |
commit | 79987057c4bb8364941e1ed9a95f2b5724bb9c83 (patch) | |
tree | a33993a3c0c279d77f0949deb6eea4aa0e7de76e /pkgs/os-specific/linux/exfat | |
parent | d7122c3a3292d8fb672643149c8bec4f48f139f9 (diff) |
exfat: fix cross compilation
Diffstat (limited to 'pkgs/os-specific/linux/exfat')
-rw-r--r-- | pkgs/os-specific/linux/exfat/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/exfat/default.nix b/pkgs/os-specific/linux/exfat/default.nix index e66ac4d65ab9..59f9c709e5fa 100644 --- a/pkgs/os-specific/linux/exfat/default.nix +++ b/pkgs/os-specific/linux/exfat/default.nix @@ -21,6 +21,9 @@ stdenv.mkDerivation rec { makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" + "ARCH=${stdenv.hostPlatform.platform.kernelArch}" + ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [ + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ]; installPhase = '' |