dleyna-renderer: init at 0.6.0

This commit is contained in:
Jan Tojnar 2017-08-31 00:24:13 +02:00
parent eea8e78f0d
commit a04cfdea12
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
4 changed files with 60 additions and 0 deletions

View File

@ -193,6 +193,7 @@
./services/databases/stanchion.nix
./services/databases/virtuoso.nix
./services/desktops/accountsservice.nix
./services/desktops/dleyna-renderer.nix
./services/desktops/geoclue2.nix
./services/desktops/gnome3/at-spi2-core.nix
./services/desktops/gnome3/evolution-data-server.nix

View File

@ -0,0 +1,28 @@
# dleyna-renderer service.
{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
services.dleyna-renderer = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable dleyna-renderer service, a DBus service
for handling DLNA renderers.
'';
};
};
};
###### implementation
config = mkIf config.services.dleyna-renderer.enable {
environment.systemPackages = [ pkgs.dleyna-renderer ];
services.dbus.packages = [ pkgs.dleyna-renderer ];
};
}

View File

@ -0,0 +1,29 @@
{ stdenv, autoreconfHook, pkgconfig, fetchFromGitHub, dleyna-connector-dbus, dleyna-core, gssdp, gupnp, gupnp_av, gupnp_dlna, libsoup, makeWrapper }:
stdenv.mkDerivation rec {
name = "dleyna-renderer";
version = "0.6.0";
src = fetchFromGitHub {
owner = "01org";
repo = name;
rev = "${version}";
sha256 = "0jy54aq8hgrvzchrvfzqaj4pcn0cfhafl9bv8a9p6j82yjk4pvpp";
};
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
buildInputs = [ dleyna-core dleyna-connector-dbus gssdp gupnp gupnp_av gupnp_dlna libsoup ];
preFixup = ''
wrapProgram "$out/libexec/dleyna-renderer-service" \
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
'';
meta = with stdenv.lib; {
description = "Library to discover and manipulate Digital Media Renderers";
homepage = http://01.org/dleyna;
maintainers = [ maintainers.jtojnar ];
platforms = platforms.linux;
license = licenses.lgpl21;
};
}

View File

@ -1753,6 +1753,8 @@ with pkgs;
dleyna-core = callPackage ../development/libraries/dleyna-core { };
dleyna-renderer = callPackage ../development/libraries/dleyna-renderer { };
dmd_2_067_1 = callPackage ../development/compilers/dmd/2.067.1.nix {
stdenv = if stdenv.hostPlatform.isDarwin then
stdenv