summary refs log tree commit diff
path: root/pkgs/development/libraries/libdazzle
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2017-12-31 15:47:05 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-03-22 07:46:51 +0100
commit73244d10bb6ca277cf1d75f944a1fc6b4637f332 (patch)
tree86d3fb869b85e4586c926c50aa3ac35befead322 /pkgs/development/libraries/libdazzle
parentee3f179fb69c74166c9e7e7a119d599bde8ef667 (diff)
downloadnixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar.gz
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar.bz2
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar.lz
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar.xz
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.tar.zst
nixpkgs-73244d10bb6ca277cf1d75f944a1fc6b4637f332.zip
libdazzle: init at 3.28.0
Diffstat (limited to 'pkgs/development/libraries/libdazzle')
-rw-r--r--pkgs/development/libraries/libdazzle/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libdazzle/default.nix b/pkgs/development/libraries/libdazzle/default.nix
new file mode 100644
index 00000000000..50f03f3ac7a
--- /dev/null
+++ b/pkgs/development/libraries/libdazzle/default.nix
@@ -0,0 +1,55 @@
+{ stdenv, pkgs, fetchurl, ninja, meson, pkgconfig, vala, gobjectIntrospection, libxml2
+, gtk-doc, docbook_xsl, dbus, xvfb_run, glib, gtk3, gnome3 }:
+
+let
+  version = "3.28.0";
+  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";
+    sha256 = "0zq37i7gnmnc7qfngzhj71nqhf2wxl4m247s2ym9ykakxbi6zajp";
+  };
+
+  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;
+  };
+}