diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libdazzle')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libdazzle/default.nix | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libdazzle/default.nix b/nixpkgs/pkgs/development/libraries/libdazzle/default.nix new file mode 100644 index 000000000000..22ef87e43d04 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libdazzle/default.nix @@ -0,0 +1,85 @@ +{ lib +, stdenv +, fetchurl +, ninja +, meson +, 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.isLinux [ + xvfb-run + ]; + + buildInputs = [ + glib + gtk3 + ]; + + mesonFlags = [ + "-Denable_gtk_doc=true" + ]; + + doCheck = stdenv.isLinux; + + checkPhase = '' + xvfb-run -s '-screen 0 800x600x24' dbus-run-session \ + --config-file=${dbus.daemon}/share/dbus-1/session.conf \ + meson test --print-errorlogs + ''; + + passthru = { + updateScript = gnome.updateScript { + packageName = pname; + }; + }; + + meta = with lib; { + description = "A library to delight your users with fancy features"; + 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://wiki.gnome.org/Apps/Builder"; + license = licenses.gpl3Plus; + maintainers = teams.gnome.members; + platforms = platforms.unix; + }; +} |