Unverified Commit 3d49fd51 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #272966 from matdibu/master

xen-guest-agent: init at 0.3.0
parents 39a2e4c2 e778c475
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -11346,6 +11346,12 @@
    githubId = 585424;
    name = "Massimo Gengarelli";
  };
  matdibu = {
    email = "contact@mateidibu.dev";
    github = "matdibu";
    githubId = 24750154;
    name = "Matei Dibu";
  };
  matejc = {
    email = "cotman.matej@gmail.com";
    github = "matejc";
+40 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitLab,
  rustPlatform,
  llvmPackages,
  xen-light,
}:
rustPlatform.buildRustPackage rec {
  pname = "xen-guest-agent";
  version = "0.3.0";

  src = fetchFromGitLab {
    owner = "xen-project";
    repo = pname;
    rev = version;
    hash = "sha256-Csio24ofj+p0j/R0av/28P/KCNXhmcF+r8xGJEfoHjQ=";
  };

  cargoHash = "sha256-XWDDzSu88zCIwMuvkFjCb98DzXHvW2IP9u3EbpAMIgw=";

  env = {
    LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
    BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${xen-light}/include";
    RUSTFLAGS = "-L ${xen-light}/lib";
  };

  nativeBuildInputs = [llvmPackages.clang xen-light];

  postFixup = ''
    patchelf $out/bin/xen-guest-agent --add-rpath ${xen-light}/lib
  '';

  meta = with lib; {
    description = "Xen agent running in Linux/BSDs (POSIX) VMs";
    homepage = "https://gitlab.com/xen-project/xen-guest-agent";
    license = licenses.agpl3;
    platforms = platforms.unix;
    maintainers = with maintainers; [matdibu];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15052,6 +15052,8 @@ with pkgs;
  xe-guest-utilities = callPackage ../tools/virtualization/xe-guest-utilities { };
  xen-guest-agent = callPackage ../tools/virtualization/xen-guest-agent { };
  xflux = callPackage ../tools/misc/xflux { };
  xflux-gui = python3Packages.callPackage ../tools/misc/xflux/gui.nix { };