2021-01-21 20:00:13 +03:00
|
|
|
{ lib, stdenv, fetchFromGitLab, pkg-config, meson, ninja, glib, glib-networking
|
2018-12-02 14:41:15 +03:00
|
|
|
, sqlite, gobject-introspection, vala, gtk-doc, libsecret, docbook_xsl
|
2018-07-07 15:49:11 +03:00
|
|
|
, docbook_xml_dtd_43, docbook_xml_dtd_45, glibcLocales, makeWrapper
|
|
|
|
, symlinkJoin, gsignondPlugins, plugins }:
|
|
|
|
|
|
|
|
let
|
|
|
|
unwrapped = stdenv.mkDerivation rec {
|
|
|
|
pname = "gsignond";
|
2018-11-30 05:16:32 +03:00
|
|
|
version = "1.2.0";
|
2018-07-07 15:49:11 +03:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "accounts-sso";
|
|
|
|
repo = pname;
|
2018-11-30 05:16:32 +03:00
|
|
|
rev = version;
|
|
|
|
sha256 = "17cpil3lpijgyj2z5c41vhb7fpk17038k5ggyw9p6049jrlf423m";
|
2018-07-07 15:49:11 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
|
|
|
glibcLocales
|
2018-12-02 14:41:15 +03:00
|
|
|
gobject-introspection
|
2018-07-07 15:49:11 +03:00
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 09:50:56 +03:00
|
|
|
pkg-config
|
2018-07-07 15:49:11 +03:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
libsecret
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ sqlite ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dbus_type=session"
|
|
|
|
"-Dextension=desktop"
|
|
|
|
];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./conf.patch
|
|
|
|
./plugin-load-env.patch
|
|
|
|
];
|
|
|
|
|
2021-01-21 20:00:13 +03:00
|
|
|
meta = with lib; {
|
2018-07-07 15:49:11 +03:00
|
|
|
description = "D-Bus service which performs user authentication on behalf of its clients";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://gitlab.com/accounts-sso/gsignond";
|
2018-07-07 15:49:11 +03:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-05 12:25:45 +03:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-07-07 15:49:11 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in if plugins == [] then unwrapped
|
|
|
|
else import ./wrapper.nix {
|
2019-06-16 22:59:06 +03:00
|
|
|
inherit makeWrapper symlinkJoin plugins;
|
2018-07-07 15:49:11 +03:00
|
|
|
gsignond = unwrapped;
|
|
|
|
}
|
|
|
|
|