Files
nixpkgs/pkgs/by-name/ux/uxplay/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
wrapGAppsHook3,
avahi,
avahi-compat,
gst_all_1,
libplist,
openssl,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "uxplay";
version = "1.72.2";
src = fetchFromGitHub {
owner = "FDH2";
repo = "UxPlay";
rev = "v${finalAttrs.version}";
hash = "sha256-xXYaaLYOlFoPObYOnBnj1LghTRaCSsOvQ7d019gyx9c=";
};
postPatch = ''
substituteInPlace lib/CMakeLists.txt \
--replace "APPLE" "FALSE" \
--replace ".a" "${stdenv.hostPlatform.extensions.sharedLibrary}"
sed -i -e '/PKG_CONFIG_EXECUTABLE/d' -e '/PKG_CONFIG_PATH/d' renderers/CMakeLists.txt
'';
nativeBuildInputs = [
cmake
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
gst_all_1.gst-libav
libplist
openssl
];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/FDH2/UxPlay/releases/tag/v${finalAttrs.version}";
description = "AirPlay Unix mirroring server";
homepage = "https://github.com/FDH2/UxPlay";
license = lib.licenses.gpl3Plus;
mainProgram = "uxplay";
maintainers = [ lib.maintainers.azuwis ];
platforms = lib.platforms.unix;
};
})