2021-10-28 06:52:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchpatch
|
2021-10-28 06:52:43 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, dleyna-connector-dbus
|
|
|
|
, dleyna-core
|
|
|
|
, gssdp
|
|
|
|
, gupnp
|
|
|
|
, gupnp-av
|
|
|
|
, gupnp-dlna
|
|
|
|
, libsoup
|
|
|
|
, makeWrapper
|
2021-10-28 06:52:43 +00:00
|
|
|
, docbook-xsl-nons
|
|
|
|
, libxslt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dleyna-renderer";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-28 06:52:43 +00:00
|
|
|
owner = "phako";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-bGasT3XCa7QHV3D7z59TSHoqWksNSIgaO0z9zYfHHuw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 1.2. We use the gentoo patch intead of the
|
|
|
|
# usptream one because the latter only applies on the libsoup_3 based
|
|
|
|
# merged dLeyna project.
|
|
|
|
# https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gentoo/gentoo/raw/2ebe20ff4cda180cc248d31a021107d08ecf39d9/net-libs/dleyna-renderer/files/meson-1.2.0.patch";
|
|
|
|
sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
makeWrapper
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
# manpage
|
|
|
|
docbook-xsl-nons
|
|
|
|
libxslt # for xsltproc
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dleyna-core
|
2021-10-28 06:52:43 +00:00
|
|
|
dleyna-connector-dbus # runtime dependency to be picked up to DLEYNA_CONNECTOR_PATH
|
2020-04-24 23:36:52 +00:00
|
|
|
gssdp
|
|
|
|
gupnp
|
|
|
|
gupnp-av
|
|
|
|
gupnp-dlna
|
|
|
|
libsoup
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/libexec/dleyna-renderer-service" \
|
|
|
|
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library to discover and manipulate Digital Media Renderers";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/phako/dleyna-renderer";
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|