From 9296ff2b58d656a0a829a474ce895dac83e6ebff Mon Sep 17 00:00:00 2001 From: Matei Dibu Date: Sun, 17 Dec 2023 17:50:49 +0200 Subject: [PATCH 1/2] maintainers: add matdibu --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index aa09b1fe5e45..0e94e02d8611 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11299,6 +11299,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"; From e778c47517a9914e2f1cdfddead91bb6719e09f6 Mon Sep 17 00:00:00 2001 From: Matei Dibu Date: Sun, 17 Dec 2023 17:51:20 +0200 Subject: [PATCH 2/2] xen-guest-agent: init at 0.3.0 --- .../xen-guest-agent/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/virtualization/xen-guest-agent/default.nix diff --git a/pkgs/tools/virtualization/xen-guest-agent/default.nix b/pkgs/tools/virtualization/xen-guest-agent/default.nix new file mode 100644 index 000000000000..52924b2b624f --- /dev/null +++ b/pkgs/tools/virtualization/xen-guest-agent/default.nix @@ -0,0 +1,40 @@ +{ + 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]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 31dbc744a8bf..d1156abc3640 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };