Skip to content

Commit

Permalink
alioth: init at 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Oct 20, 2024
1 parent 4c2fcb0 commit 3604bd3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/by-name/al/alioth/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ 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=";
};

# Checks run with the release build.
postPatch = ''
substituteInPlace alioth/src/utils/utils.rs \
--replace-fail "debug_assert_eq!" "assert_eq!"
'';

cargoHash = "sha256-J+1SXHQJJxT0qN/ELAvwQFnKCo13ZrQClpbfleM4PkA=";

separateDebugInfo = true;


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" ];
};
}

0 comments on commit 3604bd3

Please sign in to comment.