2021-10-24 09:31:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-03-16 05:01:01 +00:00
|
|
|
, fetchFromGitHub
|
2021-10-24 09:31:07 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-03-16 05:01:01 +00:00
|
|
|
, makeWrapper
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-16 05:01:01 +00:00
|
|
|
, 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";
|
2021-10-31 09:04:01 +00:00
|
|
|
version = "0.7.2";
|
2017-09-01 14:04:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-24 09:31:07 +01:00
|
|
|
owner = "phako";
|
2018-05-28 13:59:57 +01:00
|
|
|
repo = pname;
|
2021-10-24 09:31:07 +01:00
|
|
|
rev = "v${version}";
|
2021-10-31 09:04:01 +00:00
|
|
|
sha256 = "sha256-jlF9Lr/NG+Fsy/bB7aLb7xOLqel8GueJK5luo9rsDME=";
|
2017-09-01 14:04:59 +01:00
|
|
|
};
|
|
|
|
|
2019-03-16 05:01:01 +00:00
|
|
|
nativeBuildInputs = [
|
2021-10-24 09:31:07 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-03-16 05:01:01 +00:00
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dleyna-core
|
2021-10-24 09:31:07 +01:00
|
|
|
dleyna-connector-dbus # runtime dependency to be picked up to DLEYNA_CONNECTOR_PATH
|
2019-03-16 05:01:01 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-01 14:04:59 +01:00
|
|
|
description = "Library to discover, browse and manipulate Digital Media Servers";
|
2021-10-24 09:31:07 +01:00
|
|
|
homepage = "https://github.com/phako/dleyna-server";
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2017-09-01 14:04:59 +01:00
|
|
|
platforms = platforms.linux;
|
2021-10-24 09:31:07 +01:00
|
|
|
license = licenses.lgpl21Only;
|
2017-09-01 14:04:59 +01:00
|
|
|
};
|
|
|
|
}
|