Use our vhost fork for all crates. It has SHMEM and GPU backend support. Add a Nix flake package for vhost-device-gpu with the virgl backend enabled. Also fixes duplicate imports in vhost-device-gpu/src/backend/virgl.rs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
605 B
Nix
23 lines
605 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs, ... }:
|
|
let
|
|
forAllSystems =
|
|
f:
|
|
nixpkgs.lib.genAttrs [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
] (system: f nixpkgs.legacyPackages.${system});
|
|
in
|
|
{
|
|
packages = forAllSystems (pkgs: {
|
|
vhost-device-gpu = pkgs.callPackage ./packages/vhost-device-gpu.nix { };
|
|
vhost-device-sound = pkgs.callPackage ./packages/vhost-device-sound.nix { };
|
|
default = pkgs.callPackage ./packages/vhost-device-sound.nix { };
|
|
});
|
|
};
|
|
}
|