nixpkgs/pkgs/servers/uxplay/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

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