Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

64 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchurl,
autoconf,
vala,
pkg-config,
glib,
gobject-introspection,
gnome,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libgee";
version = "0.20.8";
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/libgee/${lib.versions.majorMinor finalAttrs.version}/libgee-${finalAttrs.version}.tar.xz";
sha256 = "GJgVrBQ9iYZxk7DFK33DHzqhCKFfBNa13KK2rfrQsO4=";
};
nativeBuildInputs = [
pkg-config
autoconf
vala
gobject-introspection
];
buildInputs = [
glib
];
doCheck = true;
env = {
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
}
// lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
};
passthru = {
updateScript = gnome.updateScript {
packageName = "libgee";
versionPolicy = "odd-unstable";
};
};
meta = {
description = "Utility library providing GObject-based interfaces and classes for commonly used data structures";
homepage = "https://gitlab.gnome.org/GNOME/libgee";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.unix;
teams = [ lib.teams.gnome ];
};
})