{ lib , pipewire , pkg-config , rustPlatform , wayland , wayland-protocols }: let cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); in rustPlatform.buildRustPackage rec { inherit (cargoToml.package) version; pname = cargoToml.package.name; cargoLock.lockFile = ./Cargo.lock; src = lib.cleanSource ./.; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; buildInputs = [ pipewire wayland wayland-protocols ]; }