nixos/nix: ignore nix.checkConfig when cross-compiling (#48225)
* nixos/nix: ignore nix.checkConfig when cross-compiling the check always fails because of architecture mismatch * typos
This commit is contained in:
parent
3f76d76226
commit
5ea22a5b00
@ -62,11 +62,15 @@ let
|
|||||||
''}
|
''}
|
||||||
$extraOptions
|
$extraOptions
|
||||||
END
|
END
|
||||||
'' + optionalString cfg.checkConfig ''
|
'' + optionalString cfg.checkConfig (
|
||||||
echo "Checking that Nix can read nix.conf..."
|
if pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform then ''
|
||||||
ln -s $out ./nix.conf
|
echo "Ignore nix.checkConfig when cross-compiling"
|
||||||
NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config >/dev/null
|
'' else ''
|
||||||
'');
|
echo "Checking that Nix can read nix.conf..."
|
||||||
|
ln -s $out ./nix.conf
|
||||||
|
NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config >/dev/null
|
||||||
|
'')
|
||||||
|
);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user