diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-11-14 23:24:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 23:24:54 +0100 |
commit | 2024d55020e5f34e9f1e41d54122264f246ea7c9 (patch) | |
tree | 4240405b10f0593c7b295a2baccf07733596308f | |
parent | 66d5277375d89932e115710bedde1a924a556c01 (diff) | |
parent | 3108c4dd15f76b0bb38caa9a24e0c41f0a036fc9 (diff) | |
download | nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar.gz nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar.bz2 nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar.lz nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar.xz nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.tar.zst nixlib-2024d55020e5f34e9f1e41d54122264f246ea7c9.zip |
meson: fix unknown compiler error (#73423)
meson: fix unknown compiler error
-rw-r--r-- | pkgs/development/tools/build-managers/meson/default.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix index fad5bc9e630d..595d93327396 100644 --- a/pkgs/development/tools/build-managers/meson/default.nix +++ b/pkgs/development/tools/build-managers/meson/default.nix @@ -1,4 +1,11 @@ -{ lib, python3Packages, stdenv, writeTextDir, substituteAll, targetPackages }: +{ lib +, python3Packages +, fetchpatch +, stdenv +, writeTextDir +, substituteAll +, targetPackages +}: let # See https://mesonbuild.com/Reference-tables.html#cpu-families @@ -54,6 +61,14 @@ python3Packages.buildPythonApplication rec { src = ./fix-rpath.patch; inherit (builtins) storeDir; }) + + # Fix detecting incorrect compiler in the store path hash. + # https://github.com/NixOS/nixpkgs/issues/73417#issuecomment-554077964 + # https://github.com/mesonbuild/meson/pull/6185 + (fetchpatch { + url = "https://github.com/mesonbuild/meson/commit/972ede1d14fdf17fe5bb8fb99be220f9395c2392.patch"; + sha256 = "19bfsylhpy0b2xv3ks8ac9x3q6vvvyj1wjcy971v9d5f1455xhbb"; + }) ] ++ lib.optionals stdenv.isDarwin [ # We use custom Clang, which makes Meson think *not Apple*, while still # relying on system linker. When it detects standard Clang, Meson will |