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

58 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, makeWrapper
, pkg-config
, 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 {
owner = "phako";
2018-05-28 13:59:57 +01:00
repo = pname;
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
};
nativeBuildInputs = [
meson
ninja
pkg-config
makeWrapper
];
buildInputs = [
dleyna-core
dleyna-connector-dbus # runtime dependency to be picked up to DLEYNA_CONNECTOR_PATH
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"
'';
meta = with lib; {
2017-09-01 14:04:59 +01:00
description = "Library to discover, browse and manipulate Digital Media Servers";
homepage = "https://github.com/phako/dleyna-server";
maintainers = with maintainers; [ jtojnar ];
2017-09-01 14:04:59 +01:00
platforms = platforms.linux;
license = licenses.lgpl21Only;
2017-09-01 14:04:59 +01:00
};
}