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