haskellPackages.nix-paths: relax platform equality to 'canExecute' check

This commit is contained in:
Alexandre Esteves
2026-03-17 19:28:53 +00:00
parent 2513e5ca25
commit 4e91673453
@@ -699,7 +699,7 @@ with haskellLib;
# Pass in `pkgs.nix` for the required tools. This means that overriding
# them sort of works, but only if you override all instances.
nix-paths =
if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then
if with pkgs.stdenv; buildPlatform.canExecute hostPlatform then
super.nix-paths.override {
nix-build = pkgs.nix;
nix-env = pkgs.nix;