From d8ed048b211c935bb57698690be5c09074e69356 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 5 Sep 2024 14:05:33 +0200 Subject: [PATCH] alioth: init at 0.5.0 --- pkgs/by-name/al/alioth/package.nix | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/al/alioth/package.nix diff --git a/pkgs/by-name/al/alioth/package.nix b/pkgs/by-name/al/alioth/package.nix new file mode 100644 index 00000000000000..516e4f70ff88fe --- /dev/null +++ b/pkgs/by-name/al/alioth/package.nix @@ -0,0 +1,31 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "alioth"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "alioth"; + rev = "refs/tags/v${version}"; + hash = "sha256-K0Hx6EJYyPJZA+FLIj44BtUuZZOqWW2DUJt1QbeZyu0="; + }; + + cargoHash = "sha256-J+1SXHQJJxT0qN/ELAvwQFnKCo13ZrQClpbfleM4PkA="; + + separateDebugInfo = true; + + checkFlags = [ + # "test did not panic as expected" + "--skip" "test_align_up_panic" + ]; + + meta = with lib; { + homepage = "https://github.com/google/alioth"; + description = "Experimental Type-2 Hypervisor in Rust implemented from scratch"; + license = licenses.asl20; + mainProgram = "alioth"; + maintainers = with maintainers; [ astro ]; + platforms = [ "aarch64-linux" "x86_64-linux" ]; + }; +}