1{ lib
2, stdenv
3, fetchurl
4, bash
5, gnome
6, meson
7, python3
8, ninja
9}:
10
11stdenv.mkDerivation rec {
12 pname = "mm-common";
13 version = "1.0.6";
14
15 src = fetchurl {
16 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
17 sha256 = "tVxGA3282rxc7js4nqEcw5EK22jr6IPpR3hHqmYIYuc=";
18 };
19
20 strictDeps = true;
21
22 nativeBuildInputs = [
23 meson
24 python3
25 ninja
26 ];
27
28 # for shebangs
29 buildInputs = [
30 python3
31 bash
32 ];
33
34 passthru = {
35 updateScript = gnome.updateScript {
36 packageName = pname;
37 versionPolicy = "none";
38 };
39 };
40
41 meta = with lib; {
42 description = "Common build files of GLib/GTK C++ bindings";
43 longDescription = ''
44 The mm-common module provides the build infrastructure and utilities
45 shared among the GNOME C++ binding libraries. It is only a required
46 dependency for building the C++ bindings from the gnome.org version
47 control repository. An installation of mm-common is not required for
48 building tarball releases, unless configured to use maintainer-mode.
49 '';
50 homepage = "https://www.gtkmm.org";
51 license = licenses.gpl2Plus;
52 maintainers = teams.gnome.members;
53 platforms = platforms.linux;
54 };
55}