btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / al / alioth / package.nix
blob30fd5d09df9d6498274b7cb94036a0bf77068590
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "alioth";
9   version = "0.6.0";
11   src = fetchFromGitHub {
12     owner = "google";
13     repo = "alioth";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-CQYh/F7eGk94dsXP7j3udhhBReYBvV6D8nzK/3VicwU=";
16   };
18   # Checks use `debug_assert_eq!`
19   checkType = "debug";
21   cargoHash = "sha256-xxe+WZIXkEG7B+CX3WNGhPw4AmUQOY9w3DS+QP9hMX0=";
23   separateDebugInfo = true;
25   meta = with lib; {
26     homepage = "https://github.com/google/alioth";
27     description = "Experimental Type-2 Hypervisor in Rust implemented from scratch";
28     license = licenses.asl20;
29     mainProgram = "alioth";
30     maintainers = with maintainers; [ astro ];
31     platforms = [
32       "aarch64-linux"
33       "x86_64-linux"
34     ];
35   };