2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, pkg-config, fetchFromGitHub, fetchpatch, cmake, wrapGAppsHook3, avahi, avahi-compat, openssl, gst_all_1, libplist }:
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/FD-/RPiPlay";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open-source implementation of an AirPlay mirroring server";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-08-22 07:53:02 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rpiplay";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
}
|