forked from mirrors/nixpkgs
sgx-sdk: fix pkg-config files
This commit is contained in:
parent
89929bacab
commit
141e8153fb
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue