vhost-device/flake.nix
Davíð Steinn Geirsson 1c021aaea6 Use our vhost fork for all crates and add GPU flake package
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>
2026-03-22 19:10:55 +00:00

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 { };
});
};
}