2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchgit, nix-update-script, pkg-config, meson, ninja, vala, python3, gtk-doc, docbook_xsl, docbook_xml_dtd_43, docbook_xml_dtd_412, glib, check, gobject-introspection }:
|
2018-10-24 18:45:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsignon-glib";
|
2018-11-30 02:14:05 +00:00
|
|
|
version = "2.1";
|
2018-10-24 18:45:43 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" "py" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.com/accounts-sso/${pname}";
|
2018-11-30 02:14:05 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "0gnx9gqsh0hcfm1lk7w60g64mkn1iicga5f5xcy1j9a9byacsfd0";
|
2018-10-24 18:45:43 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
check
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-10-24 18:45:43 +00:00
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-10-24 18:45:43 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dintrospection=true"
|
|
|
|
"-Dpy-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/gen-error-map.py
|
|
|
|
patchShebangs build-aux/gen-error-map.py
|
|
|
|
'';
|
|
|
|
|
2020-07-29 16:33:39 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-11-30 03:06:58 +00:00
|
|
|
description = "A library for managing single signon credentials which can be used from GLib applications";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://gitlab.com/accounts-sso/libsignon-glib";
|
2018-10-24 18:45:43 +00:00
|
|
|
license = licenses.lgpl21;
|
2021-05-05 09:25:45 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-24 18:45:43 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|