2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, sgx-azure-dcap-client
|
|
|
|
, gtest
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2024-01-13 08:15:51 +00:00
|
|
|
sgx-azure-dcap-client.overrideAttrs (old: {
|
|
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
2022-12-28 21:21:41 +00:00
|
|
|
makeWrapper
|
|
|
|
gtest
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
patches = [
|
|
|
|
./tests-missing-includes.patch
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildFlags = [
|
|
|
|
"tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D ./src/Linux/tests "$out/bin/tests"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
wrapProgram "$out/bin/tests" \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ sgx-azure-dcap-client ]}"
|
2022-12-28 21:21:41 +00:00
|
|
|
'';
|
|
|
|
})
|