summary refs log tree commit diff
path: root/pkgs/servers/rpiplay
diff options
context:
space:
mode:
authorMarkus Schneider <markus.schneider.sic+feijoas@gmail.com>2021-08-21 15:32:35 +0200
committerGitHub <noreply@github.com>2021-08-21 15:32:35 +0200
commitffac945344f711e8fcdf683d6866a27274a07228 (patch)
tree92f0ff343afa98be798005b598c716891dad4d28 /pkgs/servers/rpiplay
parent7039791feee84c65617c5bdb5b9208d4c87b6ccb (diff)
downloadnixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar.gz
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar.bz2
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar.lz
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar.xz
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.tar.zst
nixpkgs-ffac945344f711e8fcdf683d6866a27274a07228.zip
Rpiplay (#121117)
* rpiplay: init at unstable-2021-02-27

* added rpiplay to all packages

* rpiplay: unstable-2021-02-27 -> unstable-2021-06-14

Co-authored-by: Markus Schneider <mschneider@linkdot.org>
Diffstat (limited to 'pkgs/servers/rpiplay')
-rw-r--r--pkgs/servers/rpiplay/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/servers/rpiplay/default.nix b/pkgs/servers/rpiplay/default.nix
new file mode 100644
index 00000000000..672c6746abc
--- /dev/null
+++ b/pkgs/servers/rpiplay/default.nix
@@ -0,0 +1,49 @@
+{ lib, stdenv, pkg-config, fetchFromGitHub, fetchpatch, cmake, wrapGAppsHook, avahi, avahi-compat, openssl, gst_all_1, libplist }:
+
+stdenv.mkDerivation rec {
+  pname = "rpiplay";
+  version = "unstable-2021-06-14";
+
+  src = fetchFromGitHub {
+    owner = "FD-";
+    repo = "RPiPlay";
+    rev = "35dd995fceed29183cbfad0d4110ae48e0635786";
+    sha256 = "sha256-qe7ZTT45NYvzgnhRmz15uGT/FnGi9uppbKVbmch5B9A=";
+  };
+
+  patches = [
+    # allow rpiplay to be used with firewall enabled.
+    # sets static ports 7000 7100 (tcp) and 6000 6001 7011 (udp)
+    (fetchpatch {
+      name = "use-static-ports.patch";
+      url = "https://github.com/FD-/RPiPlay/commit/2ffc287ba822e1d2b2ed0fc0e41a2bb3d9dab105.patch";
+      sha256 = "08dy829gyhyzw2n54zn5m3176cmd24k5hij24vpww5bhbwkbabww";
+    })
+  ];
+
+  nativeBuildInputs = [
+    cmake
+    openssl
+    libplist
+    pkg-config
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    avahi
+    avahi-compat
+    gst_all_1.gstreamer
+    gst_all_1.gst-plugins-base
+    gst_all_1.gst-plugins-good
+    gst_all_1.gst-plugins-bad
+    gst_all_1.gst-plugins-ugly
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/FD-/RPiPlay";
+    description = "An open-source implementation of an AirPlay mirroring server.";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ mschneider ];
+    platforms = platforms.unix;
+  };
+}