diff --git a/pkgs/by-name/li/libnvme/package.nix b/pkgs/by-name/li/libnvme/package.nix index 8fa316908454d..3c898afb8a8db 100644 --- a/pkgs/by-name/li/libnvme/package.nix +++ b/pkgs/by-name/li/libnvme/package.nix @@ -14,7 +14,7 @@ swig, systemd, # ImportError: cannot import name 'mlog' from 'mesonbuild' - withDocs ? stdenv.hostPlatform.canExecute stdenv.buildPlatform, + withDocs ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, }: stdenv.mkDerivation (finalAttrs: { diff --git a/pkgs/by-name/re/repgrep/package.nix b/pkgs/by-name/re/repgrep/package.nix index fb8d6012b24bf..fdb2a6e029029 100644 --- a/pkgs/by-name/re/repgrep/package.nix +++ b/pkgs/by-name/re/repgrep/package.nix @@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec { installManPage rgr.1 popd '' - + lib.optionalString (stdenv.hostPlatform.canExecute stdenv.buildPlatform) '' + + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' # As it can be seen here: https://github.com/acheronfail/repgrep/blob/0.15.0/.github/workflows/release.yml#L206, the completions are just the same as ripgrep installShellCompletion --cmd rgr \ --bash <(${lib.getExe ripgrep} --generate complete-bash | sed 's/-c rg/-c rgr/') \ diff --git a/pkgs/by-name/vl/vlc/package.nix b/pkgs/by-name/vl/vlc/package.nix index 9654156653649..24f347eb08745 100644 --- a/pkgs/by-name/vl/vlc/package.nix +++ b/pkgs/by-name/vl/vlc/package.nix @@ -253,7 +253,7 @@ stdenv.mkDerivation (finalAttrs: { # Upstream luac can't cross compile, so we have to install the lua sources # instead of bytecode: # https://www.lua.org/wshop13/Jericke.pdf#page=39 - + lib.optionalString (!stdenv.hostPlatform.canExecute stdenv.buildPlatform) '' + + lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' substituteInPlace share/Makefile.am \ --replace $'.luac \\\n' $'.lua \\\n' ''; diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 8b4e592b1f527..7f69714dbd8c4 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -407,6 +407,9 @@ let # resulting LLVM IR isn't platform-independent this doesn't give you much. # In fact, I tried to test the result in a VM-test, but as soon as JIT was used to optimize # a query, postgres would coredump with `Illegal instruction`. + # + # Note: This is "host canExecute build" on purpose, since this is about the LLVM that is called + # to do JIT at **runtime**. broken = jitSupport && !stdenv.hostPlatform.canExecute stdenv.buildPlatform; }; });