nixpkgs/pkgs/servers/rpiplay/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

52 lines
1.4 KiB
Nix

{ lib, stdenv, pkg-config, fetchFromGitHub, fetchpatch, cmake, wrapGAppsHook3, 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
wrapGAppsHook3
];
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; {
broken = stdenv.isDarwin;
homepage = "https://github.com/FD-/RPiPlay";
description = "An open-source implementation of an AirPlay mirroring server.";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
mainProgram = "rpiplay";
};
}