2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2022-12-17 10:02:37 +00:00
|
|
|
, openssl
|
|
|
|
, libplist
|
|
|
|
, pkg-config
|
2022-04-27 09:35:20 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, avahi
|
|
|
|
, avahi-compat
|
|
|
|
, gst_all_1
|
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "uxplay";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.66";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FDH2";
|
|
|
|
repo = "UxPlay";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-kIKBxkaFvwxWUkO7AAwehP9YPOci+u2g67hEWZ52UqE=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace lib/CMakeLists.txt \
|
|
|
|
--replace ".a" "${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
|
|
sed -i '/PKG_CONFIG_EXECUTABLE/d' renderers/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
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
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "AirPlay Unix mirroring server";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/FDH2/UxPlay";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.azuwis ];
|
|
|
|
platforms = lib.platforms.unix;
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|