From 74971833bf260f2e0a3789920a08219318f0f0a0 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 26 Dec 2024 17:03:04 +0100 Subject: [PATCH] asha-pipewire-sink: init at 0-unstable-2024-10-22 --- .../by-name/as/asha-pipewire-sink/package.nix | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/as/asha-pipewire-sink/package.nix diff --git a/pkgs/by-name/as/asha-pipewire-sink/package.nix b/pkgs/by-name/as/asha-pipewire-sink/package.nix new file mode 100644 index 0000000000000..4f74ecf22f221 --- /dev/null +++ b/pkgs/by-name/as/asha-pipewire-sink/package.nix @@ -0,0 +1,46 @@ +{ + cmake, + stdenv, + fetchFromGitHub, + lib, + pkg-config, + pipewire, + bluez, + glib, +}: + +stdenv.mkDerivation rec { + pname = "asha-pipewire-sink"; + version = "0-unstable-2024-10-22"; + + src = fetchFromGitHub { + owner = "thewierdnut"; + repo = "asha_pipewire_sink"; + rev = "bbf665b9a3b90fcdbaeb092799ea3c5ba4347e31"; + hash = "sha256-PuJ6lBV7s5OqGe1X4wD7T+8LVMCFpgvM1pnMjXYr8gs="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + bluez.dev + glib.dev + pipewire.dev + ]; + + installPhase = '' + install -Dm755 asha_connection_test snoop_analyze asha_stream_test asha_pipewire_sink -t $out/bin + ''; + + meta = { + description = "Sample ASHA implementation for Linux designed to work with pipewire and bluez"; + homepage = "https://github.com/thewierdnut/asha_pipewire_sink"; + license = lib.licenses.unlicense; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ onny ]; + mainProgram = "asha_pipewire_sink"; + }; +}