fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / dl / dleyna-connector-dbus / package.nix
blob9d3ce402abf4eb88906939da537041fece0e3781
2   stdenv,
3   lib,
4   meson,
5   ninja,
6   pkg-config,
7   fetchFromGitHub,
8   fetchpatch,
9   dleyna-core,
10   glib,
13 stdenv.mkDerivation rec {
14   pname = "dleyna-connector-dbus";
15   version = "0.4.1";
17   src = fetchFromGitHub {
18     owner = "phako";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "WDmymia9MD3BRU6BOCzCIMrz9V0ACRzmEGqjbbuUmlA=";
22   };
24   patches = [
25     # Fix build with meson 1.2. We use the gentoo patch intead of the
26     # usptream one because the latter only applies on the libsoup_3 based
27     # merged dLeyna project.
28     # https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6
29     (fetchpatch {
30       url = "https://github.com/gentoo/gentoo/raw/4a0982b49a1d94aa785b05d9b7d256c26c499910/net-libs/dleyna-connector-dbus/files/meson-1.2.0.patch";
31       sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI=";
32     })
33   ];
35   nativeBuildInputs = [
36     meson
37     ninja
38     pkg-config
39   ];
41   buildInputs = [
42     dleyna-core
43     glib
44   ];
46   meta = with lib; {
47     description = "D-Bus API for the dLeyna services";
48     homepage = "https://github.com/phako/dleyna-connector-dbus";
49     maintainers = with maintainers; [ jtojnar ];
50     platforms = platforms.unix;
51     license = licenses.lgpl21Only;
52   };