diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix b/nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix new file mode 100644 index 000000000000..768af6a671a1 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix @@ -0,0 +1,60 @@ +{ lib, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, dleyna-connector-dbus +, dleyna-core +, gssdp +, gupnp +, gupnp-av +, gupnp-dlna +, libsoup +, makeWrapper +}: + +stdenv.mkDerivation rec { + pname = "dleyna-renderer"; + version = "0.6.0"; + + src = fetchFromGitHub { + owner = "01org"; + repo = pname; + rev = version; + 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 + ]; + + preFixup = '' + wrapProgram "$out/libexec/dleyna-renderer-service" \ + --set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH" + ''; + + meta = with lib; { + description = "Library to discover and manipulate Digital Media Renderers"; + homepage = "https://01.org/dleyna"; + maintainers = [ maintainers.jtojnar ]; + platforms = platforms.linux; + license = licenses.lgpl21; + }; +} |