about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gnome-menus
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gnome-menus')
-rw-r--r--nixpkgs/pkgs/development/libraries/gnome-menus/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gnome-menus/default.nix b/nixpkgs/pkgs/development/libraries/gnome-menus/default.nix
new file mode 100644
index 000000000000..c8e77148c6d8
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/gnome-menus/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchurl, pkg-config, gettext, glib, gobject-introspection, gnome3 }:
+
+stdenv.mkDerivation rec {
+  pname = "gnome-menus";
+  version = "3.36.0";
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
+    sha256 = "07xvaf8s0fiv0035nk8zpzymn5www76w2a1vflrgqmp9plw8yd6r";
+  };
+
+  makeFlags = [
+    "INTROSPECTION_GIRDIR=${placeholder "out"}/share/gir-1.0/"
+    "INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
+  ];
+
+  nativeBuildInputs = [ pkg-config gettext ];
+  buildInputs = [ glib gobject-introspection ];
+
+  passthru = {
+    updateScript = gnome3.updateScript {
+      packageName = pname;
+      versionPolicy = "none";
+    };
+  };
+
+  meta = with lib; {
+    homepage = "https://gitlab.gnome.org/GNOME/gnome-menus";
+    description = "Library that implements freedesktops's Desktop Menu Specification in GNOME";
+    license = with licenses; [ gpl2 lgpl2 ];
+    platforms = platforms.linux;
+  };
+}