2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitLab, meson, ninja, glib, check, python3, vala, gtk-doc, glibcLocales
|
2021-01-19 07:50:56 +01:00
|
|
|
, libxml2, libxslt, pkg-config, sqlite, docbook_xsl, docbook_xml_dtd_43, gobject-introspection }:
|
2015-05-06 14:28:42 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libaccounts-glib";
|
2018-11-07 23:05:19 +01:00
|
|
|
version = "1.24";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" "py" ];
|
2015-05-31 22:01:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "accounts-sso";
|
2018-11-07 23:05:19 +01:00
|
|
|
repo = "libaccounts-glib";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0y8smg1rd279lrr9ad8b499i8pbkajmwd4xn41rdh9h93hs9apn7";
|
2015-05-06 14:28:42 +02:00
|
|
|
};
|
|
|
|
|
2018-11-07 23:05:19 +01:00
|
|
|
# See: https://gitlab.com/accounts-sso/libaccounts-glib/merge_requests/22
|
|
|
|
patches = [ ./py-override.patch ];
|
|
|
|
|
2019-09-03 18:38:57 +02:00
|
|
|
nativeBuildInputs = [
|
2018-11-07 23:05:19 +01:00
|
|
|
check
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
glibcLocales
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-11-07 23:05:19 +01:00
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2018-11-07 23:05:19 +01:00
|
|
|
vala
|
|
|
|
];
|
2015-05-06 14:28:42 +02:00
|
|
|
|
2018-11-07 23:05:19 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
sqlite
|
|
|
|
];
|
2015-05-06 14:28:42 +02:00
|
|
|
|
2018-11-07 23:05:19 +01:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2015-10-01 21:37:19 +02:00
|
|
|
|
2018-11-07 23:05:19 +01:00
|
|
|
mesonFlags = [
|
2019-09-03 18:38:57 +02:00
|
|
|
"-Dpy-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
2018-11-07 23:05:19 +01:00
|
|
|
];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-10-17 20:03:43 +02:00
|
|
|
description = "Library for managing accounts which can be used from GLib applications";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2015-05-06 14:28:42 +02:00
|
|
|
}
|