evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / gn / gnome-bluetooth_1_0 / package.nix
blob815252650fc73e233a5c77ff6230a267a54a704e
2   stdenv,
3   lib,
4   fetchurl,
5   fetchpatch,
6   gnome,
7   adwaita-icon-theme,
8   meson,
9   ninja,
10   pkg-config,
11   gtk3,
12   gettext,
13   glib,
14   udev,
15   itstool,
16   libxml2,
17   wrapGAppsHook3,
18   libnotify,
19   libcanberra-gtk3,
20   gobject-introspection,
21   gtk-doc,
22   docbook-xsl-nons,
23   docbook_xml_dtd_43,
24   python3,
25   gsettings-desktop-schemas,
28 stdenv.mkDerivation (finalAttrs: {
29   pname = "gnome-bluetooth";
30   version = "3.34.5";
32   # TODO: split out "lib"
33   outputs = [
34     "out"
35     "dev"
36     "devdoc"
37     "man"
38   ];
40   src = fetchurl {
41     url = "mirror://gnome/sources/gnome-bluetooth/${lib.versions.majorMinor finalAttrs.version}/gnome-bluetooth-${finalAttrs.version}.tar.xz";
42     hash = "sha256-bJSeUsi+zCBU2qzWBJAfZs5c9wml+pHEu3ysyTm1Pqk=";
43   };
45   patches = [
46     # Fix build with meson 0.61.
47     # sendto/meson.build:24:5: ERROR: Function does not take positional arguments.
48     (fetchpatch {
49       url = "https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/commit/755fd758f866d3a3f7ca482942beee749f13a91e.patch";
50       hash = "sha256-N0MJ0pYO411o2CTNZHWmEoG2m5TGUjR6YW6HSXHTR/A=";
51     })
52   ];
54   nativeBuildInputs = [
55     meson
56     ninja
57     gettext
58     itstool
59     pkg-config
60     libxml2
61     wrapGAppsHook3
62     gobject-introspection
63     gtk-doc
64     docbook-xsl-nons
65     docbook_xml_dtd_43
66     python3
67   ];
69   buildInputs = [
70     glib
71     gtk3
72     udev
73     libnotify
74     libcanberra-gtk3
75     adwaita-icon-theme
76     gsettings-desktop-schemas
77   ];
79   mesonFlags = [
80     "-Dicon_update=false"
81     "-Dgtk_doc=true"
82   ];
84   postPatch = ''
85     chmod +x meson_post_install.py # patchShebangs requires executable file
86     patchShebangs meson_post_install.py
87   '';
89   passthru = {
90     updateScript = gnome.updateScript {
91       packageName = "gnome-bluetooth";
92       attrPath = "gnome-bluetooth_1_0";
93       freeze = true;
94     };
95   };
97   meta = with lib; {
98     homepage = "https://help.gnome.org/users/gnome-bluetooth/stable/index.html.en";
99     description = "Application that let you manage Bluetooth in the GNOME destkop";
100     mainProgram = "bluetooth-sendto";
101     maintainers = [ ];
102     license = licenses.gpl2Plus;
103     platforms = platforms.linux;
104   };