nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix

64 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
, dleyna-connector-dbus
, dleyna-core
, gssdp
, gupnp
, gupnp-av
, gupnp-dlna
, libsoup
, makeWrapper
, docbook-xsl-nons
, libxslt
}:
2017-08-31 00:24:13 +02:00
stdenv.mkDerivation rec {
2018-05-28 14:59:57 +02:00
pname = "dleyna-renderer";
version = "0.7.1";
2017-08-31 00:24:13 +02:00
src = fetchFromGitHub {
owner = "phako";
2018-05-28 14:59:57 +02:00
repo = pname;
rev = "v${version}";
sha256 = "EaTE5teMkVDHoJuTLdqcsIL7OyM+tOz85T5D9V3KDoo=";
2017-08-31 00:24:13 +02:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
makeWrapper
# manpage
docbook-xsl-nons
libxslt # for xsltproc
];
buildInputs = [
dleyna-core
dleyna-connector-dbus # runtime dependency to be picked up to DLEYNA_CONNECTOR_PATH
gssdp
gupnp
gupnp-av
gupnp-dlna
libsoup
];
2017-08-31 00:24:13 +02:00
preFixup = ''
wrapProgram "$out/libexec/dleyna-renderer-service" \
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
'';
meta = with lib; {
2017-08-31 00:24:13 +02:00
description = "Library to discover and manipulate Digital Media Renderers";
homepage = "https://github.com/phako/dleyna-renderer";
maintainers = with maintainers; [ jtojnar ];
2017-08-31 00:24:13 +02:00
platforms = platforms.linux;
license = licenses.lgpl21Only;
2017-08-31 00:24:13 +02:00
};
}