glslang: fixup paths in .pc files

These errors would now fail the build,
as stricter checks were introduced recently.
This commit is contained in:
Vladimír Čunát 2022-09-17 13:35:19 +02:00
parent c221631cee
commit a1bad74390
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -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";