summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2021-11-19 17:59:55 +0100
committerMaciej Krüger <mkg20001@gmail.com>2021-11-20 21:21:01 +0100
commitbc8d1dfa83975087f2bbb7d79f376988a279e845 (patch)
tree7e2b9ed998de82386e06a0ee5a33795e637a107e /pkgs/applications
parent9e06375eb2ced091ab083f554c7eed17d6f3429b (diff)
downloadnixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar.gz
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar.bz2
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar.lz
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar.xz
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.tar.zst
nixpkgs-bc8d1dfa83975087f2bbb7d79f376988a279e845.zip
soundwireserver: init at 3.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications')
-rwxr-xr-xpkgs/applications/audio/soundwireserver/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/soundwireserver/default.nix b/pkgs/applications/audio/soundwireserver/default.nix
new file mode 100755
index 00000000000..17660599b68
--- /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;
+  };
+}