From 39dd23c0c990c927ffe3cc2935231c29b2cd2178 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sat, 25 Jul 2020 22:09:52 -0500 Subject: [PATCH] Disable PRECOMPILE_HEADERS on cross Related: https://github.com/NixOS/nix/pull/3860 --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 11e25c0..ec26186 100644 --- a/flake.nix +++ b/flake.nix @@ -558,9 +558,14 @@ "--with-system=${stdenv.hostPlatform.system}" ]; - makeFlags = [ "profiledir=${placeholder "out"}/etc/profile.d" ]; + makeFlags = [ + "profiledir=${placeholder "out"}/etc/profile.d" + "PRECOMPILE_HEADERS=${if stdenv.buildPlatform != stdenv.hostPlatform then "0" else "1"}" + ]; - installFlags = [ "sysconfdir=${placeholder "out"}/etc" ]; + installFlags = [ + "sysconfdir=${placeholder "out"}/etc" + ]; }; };