diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-17 21:30:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 21:30:26 +0100 |
commit | 3d49fd518982487819c2b3b656e85259fcdf8514 (patch) | |
tree | 5a8ea0dff1b9bef9cb53e830e7fa6274cd219724 /pkgs | |
parent | 39a2e4c20a20e983b7f1b0ac434bd87dde2eecc2 (diff) | |
parent | e778c47517a9914e2f1cdfddead91bb6719e09f6 (diff) |
Merge pull request #272966 from matdibu/master
xen-guest-agent: init at 0.3.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/virtualization/xen-guest-agent/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
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 0000000000000..52924b2b624f6 --- /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 a838e1e9d2d8c..6a9657dd911d8 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 { }; |