2022-11-29 14:19:01 +00:00
|
|
|
{ lib
|
|
|
|
, sgx-azure-dcap-client
|
|
|
|
, gtest
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2023-09-12 23:06:54 +00:00
|
|
|
sgx-azure-dcap-client.overrideAttrs (old: {
|
|
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
2022-11-29 14:19:01 +00:00
|
|
|
makeWrapper
|
|
|
|
gtest
|
|
|
|
];
|
|
|
|
|
2024-02-10 23:02:59 +00:00
|
|
|
patches = (old.patches or []) ++ [
|
2023-09-12 23:06:54 +00:00
|
|
|
./tests-missing-includes.patch
|
|
|
|
];
|
|
|
|
|
2022-11-29 14:19:01 +00:00
|
|
|
buildFlags = [
|
|
|
|
"tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D ./src/Linux/tests "$out/bin/tests"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2023-09-12 23:06:54 +00:00
|
|
|
wrapProgram "$out/bin/tests" \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ sgx-azure-dcap-client ]}"
|
2022-11-29 14:19:01 +00:00
|
|
|
'';
|
|
|
|
})
|