@@ -1,15 +1,25 @@
1+{ stdenv, fetchFromGitLab, autoconf, automake, glib
1−{ stdenv, fetchurl, glib, libxml2, libxslt, pkgconfig, sqlite }:
2+, gtk_doc, libtool, libxml2, libxslt, pkgconfig, sqlite }:
4+let version = "1.18"; in
3stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
4− name = "libaccounts-glib-1.16";
6+ name = "libaccounts-glib-${version}";
6− url = "https://accounts-sso.googlecode.com/files/${name}.tar.gz";
8+ src = fetchFromGitLab {
7− sha256 = "0hgvk9rdfvk47c54rvcp3hq74yy7v6w1ql71q2mik8lmsx22354a";
9+ sha256 = "02p23vrqhw2l2w6nrwlk4bqxf7z9kplkc2d43716x9xakxr291km";
11+ repo = "libaccounts-glib";
12+ owner = "accounts-sso";
10 buildInputs = [ glib libxml2 libxslt sqlite ];
15 buildInputs = [ glib libxml2 libxslt sqlite ];
11− nativeBuildInputs = [ pkgconfig ];
16+ nativeBuildInputs = [ autoconf automake gtk_doc libtool pkgconfig ];
13− configurePhase = ''HAVE_GCOV_FALSE='#' ./configure $configureFlags --prefix=$out'';
18+ postPatch = ''
19+ NOCONFIGURE=1 ./autogen.sh
23+ HAVE_GCOV_FALSE="#" ./configure $configureFlags --prefix=$out