shaderc: fixup paths in .pc files

This commit is contained in:
Vladimír Čunát 2022-09-18 19:56:05 +02:00
parent e7ff7d6403
commit 038edcf9a5
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -50,6 +50,13 @@ in stdenv.mkDerivation rec {
cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" ];
# Fix the paths in .pc, even though it's unclear if all these .pc are really useful.
postFixup = ''
substituteInPlace "$dev"/lib/pkgconfig/*.pc \
--replace '=''${prefix}//' '=/' \
--replace "$dev/$dev/" "$dev/"
'';
meta = with lib; {
inherit (src.meta) homepage;
description = "A collection of tools, libraries and tests for shader compilation";