diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/sgx/azure-dcap-client/test-suite.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/sgx/azure-dcap-client/test-suite.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/sgx/azure-dcap-client/test-suite.nix b/nixpkgs/pkgs/os-specific/linux/sgx/azure-dcap-client/test-suite.nix new file mode 100644 index 000000000000..40d80ece8abf --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/sgx/azure-dcap-client/test-suite.nix @@ -0,0 +1,32 @@ +{ lib +, sgx-azure-dcap-client +, gtest +, makeWrapper +}: +sgx-azure-dcap-client.overrideAttrs (old: { + nativeBuildInputs = old.nativeBuildInputs ++ [ + makeWrapper + gtest + ]; + + patches = (old.patches or []) ++ [ + ./tests-missing-includes.patch + ]; + + 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 ]}" + ''; +}) |