@@ -0,0 +1,57 @@
1+{ stdenv, fetchgit, pkgconfig, meson, ninja, vala, python3, gtk-doc, docbook_xsl, docbook_xml_dtd_43, docbook_xml_dtd_412, glib, check, gobjectIntrospection }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "libsignon-glib";
5+ version = "3639a2e90447e4640a03a44972560afe8f61aa48";
6+
7+ name = "${pname}-2018-10-24";
8+
9+ outputs = [ "out" "dev" "devdoc" "py" ];
10+
11+ src = fetchgit {
12+ url = "https://gitlab.com/accounts-sso/${pname}";
13+ rev = version;
14+ fetchSubmodules = true;
15+ sha256 = "1cq19zbsx4c57dc5gp3shp8lzcr1hw2ynylpn1nkvfyyrx80m60w";
16+ };
17+
18+ nativeBuildInputs = [
19+ check
20+ docbook_xml_dtd_412
21+ docbook_xml_dtd_43
22+ docbook_xsl
23+ gobjectIntrospection
24+ gtk-doc
25+ meson
26+ ninja
27+ pkgconfig
28+ python3
29+ vala
30+ ];
31+
32+ buildInputs = [
33+ glib
34+ python3.pkgs.pygobject3
35+ ];
36+
37+ mesonFlags = [
38+ "-Dintrospection=true"
39+ "-Dpy-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
40+ ];
41+
42+ postPatch = ''
43+ chmod +x build-aux/gen-error-map.py
44+ patchShebangs build-aux/gen-error-map.py
45+ '';
46+
47+ meta = with stdenv.lib; {
48+ description = ''
49+ A library for managing single signon credentials which can be used from GLib applications
50+ '';
51+ homepage = https://gitlab.com/accounts-sso/libsignon-glib;
52+ license = licenses.lgpl21;
53+ maintainers = with maintainers; [ worldofpeace ];
54+ platforms = platforms.linux;
55+ };
56+}
57+