nixpkgs/pkgs/development/libraries/libdazzle/default.nix

56 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, ninja, meson, pkgconfig, vala, gobjectIntrospection, libxml2
2017-12-31 15:47:05 +01:00
, gtk-doc, docbook_xsl, dbus, xvfb_run, glib, gtk3, gnome3 }:
let
2018-07-06 09:25:54 +02:00
version = "3.28.3";
2017-12-31 15:47:05 +01:00
pname = "libdazzle";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/libdazzle/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2018-07-06 09:25:54 +02:00
sha256 = "0q8apibs99yvrwdxlknq4nayss88wsj0rp5fv2x4hh0bgfw8i7w7";
2017-12-31 15:47:05 +01:00
};
nativeBuildInputs = [ ninja meson pkgconfig vala gobjectIntrospection libxml2 gtk-doc docbook_xsl dbus xvfb_run ];
buildInputs = [ glib gtk3 ];
mesonFlags = [
"-Denable_gtk_doc=true"
];
doCheck = true;
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.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 = gnome3.maintainers;
platforms = platforms.unix;
};
}