@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitLab, pkgconfig, meson, ninja, vala, glib, gsignond, json-glib, libsoup, gobjectIntrospection }:
2+
3+stdenv.mkDerivation rec {
4+ name = "gsignond-plugin-lastfm-${version}";
5+ version = "2018-05-07";
6+
7+ src = fetchFromGitLab {
8+ owner = "accounts-sso";
9+ repo = "gsignond-plugin-lastfm";
10+ rev = "0a7a5f8511282e45cfe35987b81f27f158f0648c";
11+ sha256 = "0ay6ir9zg9l0264x5xwd7c6j8qmwlhrifkkkjd1yrjh9sqxyfj7f";
12+ };
13+
14+ nativeBuildInputs = [
15+ gobjectIntrospection
16+ meson
17+ ninja
18+ pkgconfig
19+ vala
20+ ];
21+
22+ buildInputs = [
23+ glib
24+ gsignond
25+ json-glib
26+ libsoup
27+ ];
28+
29+ PKG_CONFIG_GSIGNOND_GPLUGINSDIR = "${placeholder "out"}/lib/gsignond/gplugins";
30+
31+ meta = with stdenv.lib; {
32+ description = "Plugin for the Accounts-SSO gSignOn daemon handles the Last.FM credentials.";
33+ homepage = https://gitlab.com/accounts-sso/gsignond-plugin-lastfm;
34+ license = licenses.lgpl21Plus;
35+ maintainers = with maintainers; [ worldofpeace ];
36+ platforms = platforms.linux;
37+ };
38+}