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

61 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, dleyna-connector-dbus
, dleyna-core
, gssdp
, gupnp
, gupnp-av
, gupnp-dlna
, libsoup
, makeWrapper
}:
2017-08-31 00:24:13 +02:00
stdenv.mkDerivation rec {
2018-05-28 14:59:57 +02:00
pname = "dleyna-renderer";
2017-08-31 00:24:13 +02:00
version = "0.6.0";
src = fetchFromGitHub {
owner = "01org";
2018-05-28 14:59:57 +02:00
repo = pname;
rev = version;
2017-08-31 00:24:13 +02:00
sha256 = "0jy54aq8hgrvzchrvfzqaj4pcn0cfhafl9bv8a9p6j82yjk4pvpp";
};
patches = [
# fix build with gupnp 1.2
# comes from arch linux packaging https://git.archlinux.org/svntogit/packages.git/tree/trunk/gupnp-1.2.diff?h=packages/dleyna-renderer
./gupnp-1.2.diff
];
nativeBuildInputs = [
autoreconfHook
pkg-config
makeWrapper
];
buildInputs = [
dleyna-core
dleyna-connector-dbus
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://01.org/dleyna";
2017-08-31 00:24:13 +02:00
maintainers = [ maintainers.jtojnar ];
platforms = platforms.linux;
license = licenses.lgpl21;
};
}