1{
2 stdenv,
3 lib,
4 fetchurl,
5 pkg-config,
6 glib,
7 gobject-introspection,
8 gtk4,
9 libgee,
10 gettext,
11 vala,
12 gnome,
13 libintl,
14 meson,
15 ninja,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "libgnome-games-support";
20 version = "2.0.1";
21
22 src = fetchurl {
23 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
24 sha256 = "AYbyXEiSyGx+rEOjB/wZ22lt9PGayn9U6DwiHfnZeQo=";
25 };
26
27 nativeBuildInputs = [
28 gettext
29 gobject-introspection
30 meson
31 ninja
32 pkg-config
33 vala
34 ];
35
36 buildInputs = [
37 libintl
38 ];
39
40 propagatedBuildInputs = [
41 # Required by libgnome-games-support-2.pc
42 glib
43 gtk4
44 libgee
45 ];
46
47 passthru = {
48 updateScript = gnome.updateScript {
49 packageName = pname;
50 attrPath = "${pname}_2_0";
51 versionPolicy = "odd-unstable";
52 };
53 };
54
55 meta = with lib; {
56 description = "Small library intended for internal use by GNOME Games, but it may be used by others";
57 homepage = "https://gitlab.gnome.org/GNOME/libgnome-games-support";
58 license = licenses.lgpl3Plus;
59 teams = [ teams.gnome ];
60 platforms = platforms.unix;
61 };
62}