2022-11-21 17:40:18 +00:00
|
|
|
|
{ config
|
|
|
|
|
, lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
2024-06-20 14:57:18 +00:00
|
|
|
|
, fetchpatch
|
2022-11-21 17:40:18 +00:00
|
|
|
|
, gettext
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, pkg-config
|
|
|
|
|
, perl
|
|
|
|
|
, python3
|
2024-05-15 15:35:15 +00:00
|
|
|
|
, python3Packages
|
|
|
|
|
, libiconv, zlib, libffi, pcre2, elfutils, gnome, libselinux, bash, gnum4, libxslt
|
|
|
|
|
, docutils, gi-docgen
|
2020-11-24 20:58:05 +00:00
|
|
|
|
# use util-linuxMinimal to avoid circular dependency (util-linux, systemd, glib)
|
|
|
|
|
, util-linuxMinimal ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, buildPackages
|
|
|
|
|
|
|
|
|
|
# this is just for tests (not in the closure of any regular package)
|
2024-09-19 14:19:46 +00:00
|
|
|
|
, dbus, tzdata
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, desktop-file-utils, shared-mime-info
|
2022-11-21 17:40:18 +00:00
|
|
|
|
, darwin
|
2022-12-28 21:21:41 +00:00
|
|
|
|
, makeHardcodeGsettingsPatch
|
2023-02-16 17:41:37 +00:00
|
|
|
|
, testers
|
2024-05-15 15:35:15 +00:00
|
|
|
|
, gobject-introspection
|
|
|
|
|
, mesonEmulatorHook
|
|
|
|
|
, withIntrospection ?
|
|
|
|
|
stdenv.hostPlatform.emulatorAvailable buildPackages &&
|
|
|
|
|
lib.meta.availableOn stdenv.hostPlatform gobject-introspection &&
|
|
|
|
|
stdenv.hostPlatform.isLittleEndian == stdenv.buildPlatform.isLittleEndian
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
|
assert stdenv.hostPlatform.isLinux -> util-linuxMinimal != null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
let
|
2021-02-05 17:12:51 +00:00
|
|
|
|
# Some packages don't get "Cflags" from pkg-config correctly
|
2020-04-24 23:36:52 +00:00
|
|
|
|
# and then fail to build when directly including like <glib/...>.
|
|
|
|
|
# This is intended to be run in postInstall of any package
|
|
|
|
|
# which has $out/include/ containing just some disjunct directories.
|
|
|
|
|
flattenInclude = ''
|
|
|
|
|
for dir in "''${!outputInclude}"/include/*; do
|
|
|
|
|
cp -r "$dir"/* "''${!outputInclude}/include/"
|
|
|
|
|
rm -r "$dir"
|
|
|
|
|
ln -s . "$dir"
|
|
|
|
|
done
|
|
|
|
|
ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
|
|
|
|
|
'';
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
gobject-introspection' = buildPackages.gobject-introspection.override {
|
|
|
|
|
propagateFullGlib = false;
|
|
|
|
|
# Avoid introducing cairo, which enables gobjectSupport by default.
|
|
|
|
|
x11Support = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
librarySuffix = if (stdenv.hostPlatform.extensions.library == ".so") then "2.0.so.0"
|
|
|
|
|
else if (stdenv.hostPlatform.extensions.library == ".dylib") then "2.0.0.dylib"
|
|
|
|
|
else if (stdenv.hostPlatform.extensions.library == ".a") then "2.0.a"
|
|
|
|
|
else if (stdenv.hostPlatform.extensions.library == ".dll") then "2.0-0.dll"
|
|
|
|
|
else "2.0-0.lib";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
in
|
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "glib";
|
2024-07-31 10:19:44 +00:00
|
|
|
|
version = "2.80.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-09-30 11:47:45 +00:00
|
|
|
|
url = "mirror://gnome/sources/glib/${lib.versions.majorMinor finalAttrs.version}/glib-${finalAttrs.version}.tar.xz";
|
2024-07-31 10:19:44 +00:00
|
|
|
|
hash = "sha256-JOApxd/JtE5Fc2l63zMHipgnxIk4VVAEs7kJb6TqA08=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
|
patches = lib.optionals stdenv.hostPlatform.isDarwin [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
./darwin-compilation.patch
|
2024-07-27 06:49:29 +00:00
|
|
|
|
# FIXME: remove when https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4088 is merged and is in the tagged release
|
|
|
|
|
(fetchpatch {
|
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/glib/-/commit/9d0988ca62ee96e09aa76abbd65ff192cfce6858.patch";
|
|
|
|
|
hash = "sha256-JrR3Ba6L+3M0Nt8DgHmPG8uKtx7hOgUp7np08ATIzjA=";
|
|
|
|
|
})
|
2022-11-21 17:40:18 +00:00
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
./quark_init_on_demand.patch
|
|
|
|
|
./gobject_init_on_demand.patch
|
|
|
|
|
] ++ [
|
2024-05-15 15:35:15 +00:00
|
|
|
|
# This patch lets GLib's GDesktopAppInfo API watch and notice changes
|
|
|
|
|
# to the Nix user and system profiles. That way, the list of available
|
|
|
|
|
# applications shown by the desktop environment is immediately updated
|
|
|
|
|
# when the user installs or removes any
|
|
|
|
|
# (see <https://issues.guix.gnu.org/35594>).
|
|
|
|
|
|
|
|
|
|
# It does so by monitoring /nix/var/nix/profiles (for changes to the system
|
|
|
|
|
# profile) and /nix/var/nix/profiles/per-user/USER (for changes to the user
|
|
|
|
|
# profile) as well as /etc/profiles/per-user (for chanes to the user
|
|
|
|
|
# environment profile) and crawling their share/applications sub-directory when
|
|
|
|
|
# changes happen.
|
2021-12-06 16:07:01 +00:00
|
|
|
|
./glib-appinfo-watch.patch
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
./schema-override-variable.patch
|
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
|
# Add support for Pantheon’s terminal emulator.
|
2022-04-27 09:35:20 +00:00
|
|
|
|
./elementary-terminal-support.patch
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
# GLib contains many binaries used for different purposes;
|
|
|
|
|
# we will install them to different outputs:
|
|
|
|
|
# 1. Tools for desktop environment ($bin)
|
|
|
|
|
# * gapplication (non-darwin)
|
|
|
|
|
# * gdbus
|
|
|
|
|
# * gio
|
|
|
|
|
# * gio-launch-desktop (symlink to $out)
|
|
|
|
|
# * gsettings
|
|
|
|
|
# 2. Development/build tools ($dev)
|
|
|
|
|
# * gdbus-codegen
|
|
|
|
|
# * gio-querymodules
|
|
|
|
|
# * glib-compile-resources
|
|
|
|
|
# * glib-compile-schemas
|
|
|
|
|
# * glib-genmarshal
|
|
|
|
|
# * glib-gettextize
|
|
|
|
|
# * glib-mkenums
|
|
|
|
|
# * gobject-query
|
|
|
|
|
# * gresource
|
|
|
|
|
# * gtester
|
|
|
|
|
# * gtester-report
|
|
|
|
|
# 3. Tools for desktop environment that cannot go to $bin due to $out depending on them ($out)
|
|
|
|
|
# * gio-launch-desktop
|
|
|
|
|
./split-dev-programs.patch
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
|
|
# Tell Meson to install gdb scripts next to the lib
|
|
|
|
|
# GDB only looks there and in ${gdb}/share/gdb/auto-load,
|
|
|
|
|
# and by default meson installs in to $out/share/gdb/auto-load
|
|
|
|
|
# which does not help
|
|
|
|
|
./gdb_script.patch
|
|
|
|
|
|
|
|
|
|
# glib assumes that `RTLD_LOCAL` is defined to `0`, which is true on Linux and FreeBSD but not on Darwin.
|
|
|
|
|
./gmodule-rtld_local.patch
|
2022-09-30 11:47:45 +00:00
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
|
finalAttrs.setupHook
|
|
|
|
|
pcre2
|
2022-11-21 17:40:18 +00:00
|
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isWindows) [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
bash gnum4 # install glib-gettextize and m4 macros for other apps to use
|
2024-04-21 15:54:59 +00:00
|
|
|
|
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [
|
|
|
|
|
elfutils
|
2024-09-26 11:04:55 +00:00
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
libselinux
|
2020-11-24 20:58:05 +00:00
|
|
|
|
util-linuxMinimal # for libmount
|
2024-09-26 11:04:55 +00:00
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
AppKit Carbon Cocoa CoreFoundation CoreServices Foundation
|
2024-05-15 15:35:15 +00:00
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
depsBuildBuild = [
|
|
|
|
|
pkg-config # required to find native gi-docgen
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
|
docutils # for rst2man, rst2html5
|
2022-11-21 17:40:18 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
pkg-config
|
|
|
|
|
perl
|
|
|
|
|
python3
|
2024-05-15 15:35:15 +00:00
|
|
|
|
python3Packages.packaging # mostly used to make meson happy
|
|
|
|
|
python3Packages.wrapPython # for patchPythonScript
|
2022-11-21 17:40:18 +00:00
|
|
|
|
gettext
|
2022-12-17 10:02:37 +00:00
|
|
|
|
libxslt
|
2024-05-15 15:35:15 +00:00
|
|
|
|
] ++ lib.optionals withIntrospection [
|
|
|
|
|
gi-docgen
|
|
|
|
|
gobject-introspection'
|
|
|
|
|
] ++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
|
|
|
mesonEmulatorHook
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zlib libffi gettext libiconv ];
|
|
|
|
|
|
|
|
|
|
mesonFlags = [
|
2024-05-15 15:35:15 +00:00
|
|
|
|
"-Ddocumentation=true" # gvariant specification can be built without gi-docgen
|
2020-04-24 23:36:52 +00:00
|
|
|
|
"-Dnls=enabled"
|
2021-02-05 17:12:51 +00:00
|
|
|
|
"-Ddevbindir=${placeholder "dev"}/bin"
|
2024-05-15 15:35:15 +00:00
|
|
|
|
(lib.mesonEnable "introspection" withIntrospection)
|
|
|
|
|
# FIXME: Fails when linking target glib/tests/libconstructor-helper.so
|
|
|
|
|
# relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
|
|
|
|
|
"-Dtests=${lib.boolToString (!stdenv.hostPlatform.isStatic)}"
|
2024-04-21 15:54:59 +00:00
|
|
|
|
] ++ lib.optionals (!lib.meta.availableOn stdenv.hostPlatform elfutils) [
|
|
|
|
|
"-Dlibelf=disabled"
|
2024-09-26 11:04:55 +00:00
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [
|
2023-02-02 18:25:31 +00:00
|
|
|
|
"-Db_lundef=false"
|
|
|
|
|
"-Dxattr=false"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2020-04-24 23:36:52 +00:00
|
|
|
|
"-Wno-error=nonnull"
|
|
|
|
|
# Default for release buildtype but passed manually because
|
|
|
|
|
# we're using plain
|
|
|
|
|
"-DG_DISABLE_CAST_CHECKS"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
patchShebangs glib/gen-unicode-tables.pl
|
2022-03-30 09:31:56 +00:00
|
|
|
|
patchShebangs glib/tests/gen-casefold-txt.py
|
|
|
|
|
patchShebangs glib/tests/gen-casemap-txt.py
|
2023-04-12 12:48:02 +00:00
|
|
|
|
patchShebangs tools/gen-visibility-macros.py
|
2024-05-15 15:35:15 +00:00
|
|
|
|
patchShebangs tests
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
|
|
# Needs machine-id, comment the test
|
|
|
|
|
sed -e '/\/gdbus\/codegen-peer-to-peer/ s/^\/*/\/\//' -i gio/tests/gdbus-peer.c
|
|
|
|
|
sed -e '/g_test_add_func/ s/^\/*/\/\//' -i gio/tests/gdbus-address-get-session.c
|
|
|
|
|
# All gschemas fail to pass the test, upstream bug?
|
|
|
|
|
sed -e '/g_test_add_data_func/ s/^\/*/\/\//' -i gio/tests/gschema-compile.c
|
|
|
|
|
# Cannot reproduce the failing test_associations on hydra
|
|
|
|
|
sed -e '/\/appinfo\/associations/d' -i gio/tests/appinfo.c
|
|
|
|
|
# Needed because of libtool wrappers
|
|
|
|
|
sed -e '/g_subprocess_launcher_set_environ (launcher, envp);/a g_subprocess_launcher_setenv (launcher, "PATH", g_getenv("PATH"), TRUE);' -i gio/tests/gsubprocess.c
|
2022-02-10 20:34:41 +00:00
|
|
|
|
'' + lib.optionalString stdenv.hostPlatform.isWindows ''
|
|
|
|
|
substituteInPlace gio/win32/meson.build \
|
|
|
|
|
--replace "libintl, " ""
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
|
postConfigure = ''
|
|
|
|
|
patchShebangs gio/gdbus-2.0/codegen/gdbus-codegen gobject/glib-{genmarshal,mkenums}
|
|
|
|
|
'';
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
DETERMINISTIC_BUILD = 1;
|
|
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
|
moveToOutput "share/glib-2.0" "$dev"
|
2024-07-27 06:49:29 +00:00
|
|
|
|
moveToOutput "share/glib-2.0/gdb" "$out"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev"
|
|
|
|
|
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|"
|
|
|
|
|
|
|
|
|
|
# This file is *included* in gtk3 and would introduce runtime reference via __FILE__.
|
2022-09-30 11:47:45 +00:00
|
|
|
|
sed '1i#line 1 "glib-${finalAttrs.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \
|
2020-04-24 23:36:52 +00:00
|
|
|
|
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c
|
2022-09-09 14:08:57 +00:00
|
|
|
|
for i in $bin/bin/*; do
|
|
|
|
|
moveToOutput "share/bash-completion/completions/''${i##*/}" "$bin"
|
|
|
|
|
done
|
|
|
|
|
for i in $dev/bin/*; do
|
|
|
|
|
moveToOutput "share/bash-completion/completions/''${i##*/}" "$dev"
|
|
|
|
|
done
|
2024-05-15 15:35:15 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
preFixup = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
|
|
|
|
buildPythonPath ${python3Packages.packaging}
|
|
|
|
|
patchPythonScript "$dev/share/glib-2.0/codegen/utils.py"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
|
# Move man pages to the same output as their binaries (needs to be
|
|
|
|
|
# done after preFixupHooks which moves man pages too - in
|
|
|
|
|
# _multioutDocs)
|
|
|
|
|
postFixup = ''
|
|
|
|
|
for i in $dev/bin/*; do
|
|
|
|
|
moveToOutput "share/man/man1/''${i##*/}.1.*" "$dev"
|
|
|
|
|
done
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
2024-06-05 15:53:02 +00:00
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
2022-09-09 14:08:57 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
nativeCheckInputs = [ tzdata desktop-file-utils shared-mime-info ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
# Conditional necessary to break infinite recursion with passthru.tests
|
2024-01-02 11:29:13 +00:00
|
|
|
|
preCheck = lib.optionalString finalAttrs.finalPackage.doCheck or config.doCheckByDefault or false ''
|
2022-09-30 11:47:45 +00:00
|
|
|
|
export LD_LIBRARY_PATH="$NIX_BUILD_TOP/glib-${finalAttrs.version}/glib/.libs''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
export TZDIR="${tzdata}/share/zoneinfo"
|
|
|
|
|
export XDG_CACHE_HOME="$TMP"
|
|
|
|
|
export XDG_RUNTIME_HOME="$TMP"
|
|
|
|
|
export HOME="$TMP"
|
|
|
|
|
export XDG_DATA_DIRS="${desktop-file-utils}/share:${shared-mime-info}/share"
|
2022-12-02 08:20:57 +00:00
|
|
|
|
export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
|
|
# pkg_config_tests expects a PKG_CONFIG_PATH that points to meson-private, wrapped pkg-config
|
|
|
|
|
# tries to be clever and picks up the wrong glib at the end.
|
|
|
|
|
export PATH="${buildPackages.pkg-config-unwrapped}/bin:$PATH:$(pwd)/gobject"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
echo "PATH=$PATH"
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
|
|
# Our gobject-introspection patches make the shared library paths absolute
|
|
|
|
|
# in the GIR files. When running tests, the library is not yet installed,
|
|
|
|
|
# though, so we need to replace the absolute path with a local one during build.
|
|
|
|
|
# We are using a symlink that we will delete before installation.
|
|
|
|
|
mkdir -p $out/lib
|
|
|
|
|
ln -s $PWD/gobject/libgobject-${librarySuffix} $out/lib/libgobject-${librarySuffix}
|
|
|
|
|
ln -s $PWD/gio/libgio-${librarySuffix} $out/lib/libgio-${librarySuffix}
|
|
|
|
|
ln -s $PWD/glib/libglib-${librarySuffix} $out/lib/libglib-${librarySuffix}
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
|
rm $out/lib/libgobject-${librarySuffix}
|
|
|
|
|
rm $out/lib/libgio-${librarySuffix}
|
|
|
|
|
rm $out/lib/libglib-${librarySuffix}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
|
separateDebugInfo = stdenv.hostPlatform.isLinux;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
passthru = rec {
|
|
|
|
|
gioModuleDir = "lib/gio/modules";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
|
|
makeSchemaDataDirPath = dir: name: "${dir}/share/gsettings-schemas/${name}";
|
|
|
|
|
makeSchemaPath = dir: name: "${makeSchemaDataDirPath dir name}/glib-2.0/schemas";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
getSchemaPath = pkg: makeSchemaPath pkg pkg.name;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
getSchemaDataDirPath = pkg: makeSchemaDataDirPath pkg pkg.name;
|
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
|
tests = {
|
|
|
|
|
withChecks = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; });
|
|
|
|
|
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
};
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
inherit flattenInclude;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
|
packageName = "glib";
|
|
|
|
|
versionPolicy = "odd-unstable";
|
|
|
|
|
};
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
|
|
mkHardcodeGsettingsPatch =
|
|
|
|
|
{
|
|
|
|
|
src,
|
|
|
|
|
glib-schema-to-var,
|
|
|
|
|
}:
|
|
|
|
|
builtins.trace
|
|
|
|
|
"glib.mkHardcodeGsettingsPatch is deprecated, please use makeHardcodeGsettingsPatch instead"
|
|
|
|
|
(makeHardcodeGsettingsPatch {
|
2022-11-21 17:40:18 +00:00
|
|
|
|
inherit src;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
schemaIdToVariableMapping = glib-schema-to-var;
|
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "C library of programming buildings blocks";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/glib";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ lovek323 raskin ]);
|
2023-02-16 17:41:37 +00:00
|
|
|
|
pkgConfigModules = [
|
|
|
|
|
"gio-2.0"
|
|
|
|
|
"gobject-2.0"
|
|
|
|
|
"gthread-2.0"
|
|
|
|
|
];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
platforms = platforms.unix ++ platforms.windows;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
|
GLib provides the core application building blocks for libraries
|
|
|
|
|
and applications written in C. It provides the core object
|
|
|
|
|
system used in GNOME, the main loop implementation, and a large
|
|
|
|
|
set of utility functions for strings and common data structures.
|
|
|
|
|
'';
|
|
|
|
|
};
|
2022-09-30 11:47:45 +00:00
|
|
|
|
})
|