a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
27 lines
488 B
Nix
27 lines
488 B
Nix
{ lib
|
|
, sgx-azure-dcap-client
|
|
, gtest
|
|
, makeWrapper
|
|
}:
|
|
sgx-azure-dcap-client.overrideAttrs (oldAttrs: {
|
|
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [
|
|
makeWrapper
|
|
gtest
|
|
];
|
|
|
|
buildFlags = [
|
|
"tests"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D ./src/Linux/tests "$out/bin/tests"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram "$out/bin/tests" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ sgx-azure-dcap-client ]}"
|
|
'';
|
|
})
|