nixpkgs/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 15:18:52 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, openssl
, libplist
, pkg-config
2022-04-21 15:18:52 +00:00
, wrapGAppsHook
, avahi
, avahi-compat
, gst_all_1
}:
stdenv.mkDerivation rec {
pname = "uxplay";
2023-02-01 14:05:13 +00:00
version = "1.62";
2022-04-21 15:18:52 +00:00
src = fetchFromGitHub {
owner = "FDH2";
repo = "UxPlay";
rev = "v${version}";
2023-02-01 14:05:13 +00:00
sha256 = "sha256-+IO+ITSa5LSFdCaU28B/MMBl4a+35957VlNxIQK5IqU=";
2022-04-21 15:18:52 +00:00
};
postPatch = ''
substituteInPlace lib/CMakeLists.txt \
--replace ".a" "${stdenv.hostPlatform.extensions.sharedLibrary}"
sed -i '/PKG_CONFIG_EXECUTABLE/d' renderers/CMakeLists.txt
'';
2022-04-21 15:18:52 +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
];
meta = with lib; {
homepage = "https://github.com/FDH2/UxPlay";
description = "AirPlay Unix mirroring server";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ azuwis ];
platforms = platforms.unix;
};
}