vhost-device/packages/vhost-device-sound.nix
Davíð Steinn Geirsson 323a66d430 nix: add flake with vhost-device-sound package
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 20:49:42 +00:00

47 lines
858 B
Nix

{
lib,
rustPlatform,
pkg-config,
pipewire,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "vhost-device-sound";
version = "0.3.0";
src = lib.cleanSource ./..;
cargoHash = "sha256-mw0zOCOOT2LmFUGzC4n3YES6R7eaofMsaSYWJpLooAM=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
pipewire
];
cargoBuildFlags = [
"--package"
"vhost-device-sound"
];
cargoTestFlags = [
"--package"
"vhost-device-sound"
];
buildNoDefaultFeatures = true;
buildFeatures = [ "pw-backend" ];
doCheck = false;
meta = {
homepage = "https://git.dsg.is/dsg/vhost-device";
description = "virtio-sound device using the vhost-user protocol (vmsilo fork)";
license = [
lib.licenses.asl20
lib.licenses.bsd3
];
platforms = lib.platforms.linux;
};
})