From bc8d1dfa83975087f2bbb7d79f376988a279e845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 19 Nov 2021 17:59:55 +0100 Subject: [PATCH] soundwireserver: init at 3.0 Co-authored-by: Sandro --- .../audio/soundwireserver/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100755 pkgs/applications/audio/soundwireserver/default.nix diff --git a/pkgs/applications/audio/soundwireserver/default.nix b/pkgs/applications/audio/soundwireserver/default.nix new file mode 100755 index 000000000000..17660599b689 --- /dev/null +++ b/pkgs/applications/audio/soundwireserver/default.nix @@ -0,0 +1,39 @@ +{ lib +, qt5 +, autoPatchelfHook +, unzip +, fetchzip +, portaudio +}: + +qt5.mkDerivation { + pname = "soundwire"; + version = "3.0"; + + src = fetchzip { + url = "https://web.archive.org/web/20211120182526/https://georgielabs.net/SoundWire_Server_linux64.tar.gz"; + hash = "sha256-TECuQ5WXpeikc9tXEE/wVBnRbdYd0OaIFFhsBRmaukA="; + }; + + nativeBuildInputs = [ + unzip + autoPatchelfHook + ]; + + buildInputs = [ + portaudio + ]; + + installPhase = '' + install -D SoundWire-Server.desktop $out/share/applications/SoundWireServer.desktop + install -D SoundWireServer $out/bin/SoundWireServer + install -D sw-icon.xpm $out/share/icons/hicolor/256x256/apps/sw-icon.xpm + ''; + + meta = with lib; { + description = "Turn your Android device into wireless headphones / wireless speaker"; + homepage = "https://georgielabs.net/"; + maintainers = with maintainers; [ mkg20001 ]; + license = licenses.unfree; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 60762177c3e9..f42f75e21f71 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9591,6 +9591,8 @@ with pkgs; soundkonverter = libsForQt5.soundkonverter; + soundwireserver = callPackage ../applications/audio/soundwireserver { }; + sozu = callPackage ../servers/sozu { }; sparsehash = callPackage ../development/libraries/sparsehash { };