diff --git a/pkgs/os-specific/linux/sgx-sdk/default.nix b/pkgs/os-specific/linux/sgx-sdk/default.nix index 4771aa8796c1..013d7b06eb68 100644 --- a/pkgs/os-specific/linux/sgx-sdk/default.nix +++ b/pkgs/os-specific/linux/sgx-sdk/default.nix @@ -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 = ''