3
0
Fork 0
forked from mirrors/nixpkgs

sgx-sdk: fix pkg-config files

This commit is contained in:
Vincent Haupert 2021-11-15 01:57:40 +01:00
parent 89929bacab
commit 141e8153fb

View file

@ -17,6 +17,7 @@
, perl
, python3
, texinfo
, validatePkgConfig
, which
, writeShellScript
}:
@ -65,6 +66,7 @@ stdenv.mkDerivation rec {
perl
python3
texinfo
validatePkgConfig
];
buildInputs = [
@ -129,6 +131,11 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
preFixup = ''
echo "Fixing pkg-config files"
sed -i "s|prefix=.*|prefix=$out/sgxsdk|g" $out/sgxsdk/pkgconfig/*.pc
'';
doInstallCheck = true;
installCheckInputs = [ which ];
installCheckPhase = ''