2021-10-28 06:52:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, fetchFromGitHub
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchpatch
|
2021-10-28 06:52:43 +00:00
|
|
|
, dleyna-core
|
|
|
|
, glib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dleyna-connector-dbus";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "0.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-28 06:52:43 +00:00
|
|
|
owner = "phako";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "WDmymia9MD3BRU6BOCzCIMrz9V0ACRzmEGqjbbuUmlA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 1.2. We use the gentoo patch intead of the
|
|
|
|
# usptream one because the latter only applies on the libsoup_3 based
|
|
|
|
# merged dLeyna project.
|
|
|
|
# https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gentoo/gentoo/raw/4a0982b49a1d94aa785b05d9b7d256c26c499910/net-libs/dleyna-connector-dbus/files/meson-1.2.0.patch";
|
|
|
|
sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dleyna-core
|
|
|
|
glib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A D-Bus API for the dLeyna services";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/phako/dleyna-connector-dbus";
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|