From a1bad74390af6504969b0e40f4dba1a2d2ecb1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 17 Sep 2022 13:35:19 +0200 Subject: [PATCH] glslang: fixup paths in .pc files These errors would now fail the build, as stricter checks were introduced recently. --- pkgs/development/compilers/glslang/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/compilers/glslang/default.nix b/pkgs/development/compilers/glslang/default.nix index 72d895449111..17ff68e892a2 100644 --- a/pkgs/development/compilers/glslang/default.nix +++ b/pkgs/development/compilers/glslang/default.nix @@ -36,6 +36,12 @@ stdenv.mkDerivation rec { mkdir $out/include/External ''; + # Fix the paths in .pc, even though it's unclear if these .pc are really useful. + postFixup = '' + substituteInPlace "$out"/lib/pkgconfig/SPIRV-Tools{,-shared}.pc \ + --replace '=''${prefix}//' '=' + ''; + meta = with lib; { inherit (src.meta) homepage; description = "Khronos reference front-end for GLSL and ESSL";