From 4e91673453dd1c6e8ee3972134ded4f81d1d195c Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Tue, 17 Mar 2026 19:28:53 +0000 Subject: [PATCH] haskellPackages.nix-paths: relax platform equality to 'canExecute' check --- pkgs/development/haskell-modules/configuration-common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 7b4e159215e0..84bdd778c2bc 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -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;