{ lib, rustPlatform, fetchFromGitHub, makeWrapper, pkg-config, dbus, libpulseaudio, libxkbcommon, wayland, ... }: rustPlatform.buildRustPackage (finalAttrs: { pname = "librepods"; version = "0.0.0"; cargoHash = "sha256-17dE+oYvECU4f1SL6LHS95sXEea/Z0VgTPQ4u6TZTic="; src = (fetchFromGitHub { owner = "kavishdevar"; repo = finalAttrs.pname; hash = "sha256-EuIYvBqBtpgutVqPOLIO3E9OhVzQ5q5TDoz/F+9MHEE="; rev = "linux/rust"; }) + "/linux-rust"; nativeBuildInputs = [ pkg-config makeWrapper ]; buildInputs = [ dbus libpulseaudio libxkbcommon wayland ]; postFixup = '' for executable in $(find $out/bin -type f -executable); do wrapProgram $executable \ --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ wayland libxkbcommon ] } done ''; meta = { mainProgram = "librepods"; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ zaphyra ]; }; })