lol
1{ stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt
2, pkgconfig, gettext, xmlsec, zlib
3}:
4
5stdenv.mkDerivation rec {
6 name = "aqbanking-${version}";
7 version = "5.6.10";
8
9 src = let
10 inherit ((import ./sources.nix).aqbanking) sha256 releaseId;
11 qstring = "package=03&release=${releaseId}&file=01";
12 mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
13 in fetchurl {
14 name = "${name}.tar.gz";
15 urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
16 inherit sha256;
17 };
18
19 postPatch = ''
20 sed -i -e '/^aqbanking_plugindir=/ {
21 c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
22 }' configure
23 '';
24
25 buildInputs = [ gmp gwenhywfar libtool libxml2 libxslt xmlsec zlib ];
26
27 nativeBuildInputs = [ pkgconfig gettext ];
28
29 configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
30
31 meta = with stdenv.lib; {
32 description = "An interface to banking tasks, file formats and country information";
33 homepage = http://www2.aquamaniac.de/sites/download/packages.php?package=03&showall=1;
34 hydraPlatforms = [];
35 license = licenses.gpl2Plus;
36 maintainers = with maintainers; [ goibhniu ];
37 platforms = platforms.linux;
38 };
39}