depot/third_party/nixpkgs/pkgs/development/libraries/libsignon-glib/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

53 lines
1.3 KiB
Nix

{ stdenv, fetchgit, pkgconfig, meson, ninja, vala, python3, gtk-doc, docbook_xsl, docbook_xml_dtd_43, docbook_xml_dtd_412, glib, check, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "libsignon-glib";
version = "2.1";
outputs = [ "out" "dev" "devdoc" "py" ];
src = fetchgit {
url = "https://gitlab.com/accounts-sso/${pname}";
rev = "refs/tags/${version}";
sha256 = "0gnx9gqsh0hcfm1lk7w60g64mkn1iicga5f5xcy1j9a9byacsfd0";
fetchSubmodules = true;
};
nativeBuildInputs = [
check
docbook_xml_dtd_412
docbook_xml_dtd_43
docbook_xsl
gobject-introspection
gtk-doc
meson
ninja
pkgconfig
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
'';
meta = with stdenv.lib; {
description = "A library for managing single signon credentials which can be used from GLib applications";
homepage = "https://gitlab.com/accounts-sso/libsignon-glib";
license = licenses.lgpl21;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}