nixpkgs-suyu/pkgs/servers/uxplay/default.nix

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

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
}:
stdenv.mkDerivation rec {
pname = "uxplay";
2023-02-27 23:59:17 +01:00
version = "1.63.2";
2022-04-21 17:18:52 +02:00
src = fetchFromGitHub {
owner = "FDH2";
repo = "UxPlay";
rev = "v${version}";
2023-02-27 23:59:17 +01:00
sha256 = "sha256-K1DlGpamX+MkVpevhZBINtNawkPfN5ofHOcsiBHgnC4=";
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
];
meta = with lib; {
homepage = "https://github.com/FDH2/UxPlay";
description = "AirPlay Unix mirroring server";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ azuwis ];
platforms = platforms.unix;
};
}