2019-03-16 05:01:01 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, makeWrapper
|
|
|
|
, pkgconfig
|
|
|
|
, dleyna-core
|
|
|
|
, dleyna-connector-dbus
|
|
|
|
, gssdp
|
|
|
|
, gupnp
|
|
|
|
, gupnp-av
|
|
|
|
, gupnp-dlna
|
|
|
|
, libsoup
|
|
|
|
}:
|
2017-09-01 14:04:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-28 13:59:57 +01:00
|
|
|
pname = "dleyna-server";
|
2017-09-01 14:04:59 +01:00
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "01org";
|
2018-05-28 13:59:57 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2017-09-01 14:04:59 +01:00
|
|
|
sha256 = "13a2i6ms27s46yxdvlh2zm7pim7jmr5cylnygzbliz53g3gxxl3j";
|
|
|
|
};
|
|
|
|
|
2019-03-16 05:01:01 +00:00
|
|
|
patches = [
|
|
|
|
# fix build with gupnp 1.2
|
|
|
|
# https://github.com/intel/dleyna-server/pull/161
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/intel/dleyna-server/commit/96c01c88363d6e5e9b7519bc4e8b5d86cf783e1f.patch;
|
|
|
|
sha256 = "0p8fn331x2whvn6skxqvfzilx0m0yx2q5mm2wh2625l396m3fzmm";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dleyna-core
|
|
|
|
dleyna-connector-dbus
|
|
|
|
gssdp
|
|
|
|
gupnp
|
|
|
|
gupnp-av
|
|
|
|
gupnp-dlna
|
|
|
|
libsoup
|
|
|
|
];
|
2017-09-01 14:04:59 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/libexec/dleyna-server-service" \
|
|
|
|
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library to discover, browse and manipulate Digital Media Servers";
|
2018-06-23 12:34:55 +01:00
|
|
|
homepage = https://01.org/dleyna;
|
2017-09-01 14:04:59 +01:00
|
|
|
maintainers = [ maintainers.jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|