nixpkgs/pkgs/by-name/li/libdazzle/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

98 lines
2.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
ninja,
meson,
mesonEmulatorHook,
pkg-config,
vala,
gobject-introspection,
libxml2,
gtk-doc,
docbook_xsl,
docbook_xml_dtd_43,
dbus,
xvfb-run,
glib,
gtk3,
gnome,
}:
stdenv.mkDerivation rec {
pname = "libdazzle";
version = "3.44.0";
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/libdazzle/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "PNPkXrbiaAywXVLh6A3Y+dWdR2UhLw4o945sF4PRjq4=";
};
nativeBuildInputs =
[
ninja
meson
pkg-config
vala
gobject-introspection
libxml2
gtk-doc
docbook_xsl
docbook_xml_dtd_43
dbus
glib
]
++ lib.optionals stdenv.hostPlatform.isLinux [
xvfb-run
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [
glib
gtk3
];
mesonFlags = [
"-Denable_gtk_doc=true"
];
doCheck = stdenv.hostPlatform.isLinux;
checkPhase = ''
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
};
};
meta = with lib; {
description = "Library to delight your users with fancy features";
mainProgram = "dazzle-list-counters";
longDescription = ''
The libdazzle library is a companion library to GObject and GTK. It
provides various features that we wish were in the underlying library but
cannot for various reasons. In most cases, they are wildly out of scope
for those libraries. In other cases, our design isn't quite generic
enough to work for everyone.
'';
homepage = "https://gitlab.gnome.org/GNOME/libdazzle";
license = licenses.gpl3Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}