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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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 13:04:59 +00:00
stdenv.mkDerivation rec {
2018-05-28 12:59:57 +00:00
pname = "dleyna-server";
2021-10-31 09:04:01 +00:00
version = "0.7.2";
2017-09-01 13:04:59 +00:00
src = fetchFromGitHub {
owner = "phako";
2018-05-28 12:59:57 +00:00
repo = pname;
rev = "v${version}";
2021-10-31 09:04:01 +00:00
sha256 = "sha256-jlF9Lr/NG+Fsy/bB7aLb7xOLqel8GueJK5luo9rsDME=";
2017-09-01 13:04:59 +00: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 13:04:59 +00:00
preFixup = ''
wrapProgram "$out/libexec/dleyna-server-service" \
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
'';
meta = with lib; {
2017-09-01 13:04:59 +00:00
description = "Library to discover, browse and manipulate Digital Media Servers";
homepage = "https://github.com/phako/dleyna-server";
maintainers = with maintainers; [ jtojnar ];
2022-10-20 01:04:25 +00:00
platforms = platforms.unix;
license = licenses.lgpl21Only;
2017-09-01 13:04:59 +00:00
};
}