From b9d824455b7726ee45bb16d100cb9e78c315f618 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:53:55 +0100 Subject: [PATCH] igvmmeasure: package This tool can be used to precalculate the SNP launch digest of a VM given an IGVM file. --- packages/by-name/igvmmeasure/package.nix | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 packages/by-name/igvmmeasure/package.nix diff --git a/packages/by-name/igvmmeasure/package.nix b/packages/by-name/igvmmeasure/package.nix new file mode 100644 index 000000000..a5002f9ba --- /dev/null +++ b/packages/by-name/igvmmeasure/package.nix @@ -0,0 +1,34 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, cmake +}: + +rustPlatform.buildRustPackage rec { + pname = "igvmmeasure"; + version = "0.1.0-unstable-2024-03-18"; + + src = fetchFromGitHub { + owner = "coconut-svsm"; + repo = "svsm"; + # TODO(malt3): Use a released version once available. + rev = "3fd89b35c56477729987390e35ad235102ccc48f"; + hash = "sha256-SuDb+S6F1S+8apyQI/t+U6L6dlYg+zGJI9s1HWglGm0="; + }; + + cargoBuildFlags = "-p igvmmeasure"; + + cargoLock = { + lockFile = "${src}/Cargo.lock"; + outputHashes = { + "packit-0.1.1" = "sha256-BLVpKYjrqTwEAPgL7V1xwMnmNn4B8bA38GSmrry0GIM="; + }; + }; + + meta = { + changelog = "https://github.com/coconut-svsm/svsm/releases/tag/${version}"; + homepage = "https://github.com/coconut-svsm/svsm"; + mainProgram = "igvmmeasure"; + license = lib.licenses.mit; + }; +}