nixpkgs/pkgs/servers/uxplay/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 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-10-05 16:39:46 +02:00
version = "1.66";
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}";
2023-10-05 16:39:46 +02:00
hash = "sha256-kIKBxkaFvwxWUkO7AAwehP9YPOci+u2g67hEWZ52UqE=";
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;
2023-11-23 22:09:35 +01:00
mainProgram = "uxplay";
2022-04-21 17:18:52 +02:00
};
2023-07-29 12:47:27 +02:00
})