Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / dleyna-connector-dbus / default.nix
bloba6983decf33f5bdbb15930d6e04fcf13fa80d82d
1 { stdenv
2 , lib
3 , meson
4 , ninja
5 , pkg-config
6 , fetchFromGitHub
7 , fetchpatch
8 , dleyna-core
9 , glib
12 stdenv.mkDerivation rec {
13   pname = "dleyna-connector-dbus";
14   version = "0.4.1";
16   src = fetchFromGitHub {
17     owner = "phako";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "WDmymia9MD3BRU6BOCzCIMrz9V0ACRzmEGqjbbuUmlA=";
21   };
23   patches = [
24     # Fix build with meson 1.2. We use the gentoo patch intead of the
25     # usptream one because the latter only applies on the libsoup_3 based
26     # merged dLeyna project.
27     # https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6
28     (fetchpatch {
29       url = "https://github.com/gentoo/gentoo/raw/4a0982b49a1d94aa785b05d9b7d256c26c499910/net-libs/dleyna-connector-dbus/files/meson-1.2.0.patch";
30       sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI=";
31     })
32   ];
34   nativeBuildInputs = [
35     meson
36     ninja
37     pkg-config
38   ];
40   buildInputs = [
41     dleyna-core
42     glib
43   ];
45   meta = with lib; {
46     description = "A D-Bus API for the dLeyna services";
47     homepage = "https://github.com/phako/dleyna-connector-dbus";
48     maintainers = with maintainers; [ jtojnar ];
49     platforms = platforms.unix;
50     license = licenses.lgpl21Only;
51   };