about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/mm-common/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/mm-common/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/mm-common/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/mm-common/default.nix b/nixpkgs/pkgs/development/libraries/mm-common/default.nix
new file mode 100644
index 000000000000..a43d99503a3f
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/mm-common/default.nix
@@ -0,0 +1,45 @@
+{ lib, stdenv
+, fetchurl
+, gnome3
+, meson
+, python3
+, ninja
+}:
+
+stdenv.mkDerivation rec {
+  pname = "mm-common";
+  version = "1.0.2";
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
+    sha256 = "07b4s5ckcz9q5gwx8vchim19mhfgl8wysqwi30pndks3m4zrzad2";
+  };
+
+  nativeBuildInputs = [
+    meson
+    python3
+    ninja
+  ];
+
+  passthru = {
+    updateScript = gnome3.updateScript {
+      packageName = pname;
+      versionPolicy = "none";
+    };
+  };
+
+  meta = with lib; {
+    description = "Common build files of GLib/GTK C++ bindings";
+    longDescription = ''
+      The mm-common module provides the build infrastructure and utilities
+      shared among the GNOME C++ binding libraries. It is only a required
+      dependency for building the C++ bindings from the gnome.org version
+      control repository. An installation of mm-common is not required for
+      building tarball releases, unless configured to use maintainer-mode.
+    '';
+    homepage = "https://www.gtkmm.org";
+    license = licenses.gpl2Plus;
+    maintainers = teams.gnome.members;
+    platforms = platforms.linux;
+  };
+}