From aa1fde65aff7f209ccaf3255e080e7458f06a56f Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Thu, 11 Jul 2024 19:46:10 +0200 Subject: [PATCH] avml: init at 0.14.0 https://github.com/microsoft/avml add update script Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com> --- pkgs/by-name/av/avml/package.nix | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/av/avml/package.nix diff --git a/pkgs/by-name/av/avml/package.nix b/pkgs/by-name/av/avml/package.nix new file mode 100644 index 000000000000..6ae9f4378ec6 --- /dev/null +++ b/pkgs/by-name/av/avml/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + perl, + testers, + avml, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "avml"; + version = "0.14.0"; + + src = fetchFromGitHub { + owner = "microsoft"; + repo = "avml"; + rev = "refs/tags/v${version}"; + hash = "sha256-MIqQ5NRWAfXm7AblsKCrUiaYN5IGUo2jWJMJZL+w3V4="; + }; + + cargoHash = "sha256-gcpjrxnQDyO92OW6LZVc4x73TmTtQoaEYhmGmqhz8ng="; + + nativeBuildInputs = [ perl ]; + + passthru.tests.version = testers.testVersion { package = avml; }; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "A portable volatile memory acquisition tool for Linux"; + homepage = "https://github.com/microsoft/avml"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.lesuisse ]; + platforms = lib.platforms.linux; + mainProgram = "avml"; + }; +}