nixpkgs-suyu/pkgs/development/libraries/gsignond/default.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

2018-07-07 14:49:11 +02:00
{ stdenv, fetchFromGitLab, pkgconfig, meson, ninja, glib, glib-networking
, sqlite, gobject-introspection, vala, gtk-doc, libsecret, docbook_xsl
2018-07-07 14:49:11 +02:00
, docbook_xml_dtd_43, docbook_xml_dtd_45, glibcLocales, makeWrapper
, symlinkJoin, gsignondPlugins, plugins }:
let
unwrapped = stdenv.mkDerivation rec {
pname = "gsignond";
2018-11-30 03:16:32 +01:00
version = "1.2.0";
2018-07-07 14:49:11 +02:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
owner = "accounts-sso";
repo = pname;
2018-11-30 03:16:32 +01:00
rev = version;
sha256 = "17cpil3lpijgyj2z5c41vhb7fpk17038k5ggyw9p6049jrlf423m";
2018-07-07 14:49:11 +02:00
};
nativeBuildInputs = [
docbook_xml_dtd_43
docbook_xml_dtd_45
docbook_xsl
glibcLocales
gobject-introspection
2018-07-07 14:49:11 +02:00
gtk-doc
meson
ninja
pkgconfig
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
];
meta = with stdenv.lib; {
description = "D-Bus service which performs user authentication on behalf of its clients";
homepage = https://gitlab.com/accounts-sso/gsignond;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
};
in if plugins == [] then unwrapped
else import ./wrapper.nix {
inherit stdenv makeWrapper symlinkJoin gsignondPlugins plugins;
gsignond = unwrapped;
}