Skip to content

Commit

Permalink
igvmmeasure: package
Browse files Browse the repository at this point in the history
This tool can be used to precalculate the SNP launch digest of a VM given
an IGVM file.
  • Loading branch information
malt3 committed Mar 18, 2024
1 parent 7cf0533 commit b9d8244
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/by-name/igvmmeasure/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit b9d8244

Please sign in to comment.