2014-02-23 12:21:19 +01:00
|
|
|
{ stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt
|
2016-06-02 18:55:30 +02:00
|
|
|
, pkgconfig, gettext, xmlsec, zlib
|
2014-02-23 12:21:19 +01:00
|
|
|
}:
|
2012-01-08 20:29:07 +01:00
|
|
|
|
2018-04-27 17:24:21 +02:00
|
|
|
let
|
|
|
|
inherit ((import ./sources.nix).aqbanking) sha256 releaseId version;
|
|
|
|
in stdenv.mkDerivation rec {
|
2016-06-02 16:18:02 +02:00
|
|
|
name = "aqbanking-${version}";
|
2018-04-27 17:24:21 +02:00
|
|
|
inherit version;
|
2012-01-08 20:29:07 +01:00
|
|
|
|
2016-06-02 16:18:02 +02:00
|
|
|
src = let
|
2018-04-27 17:24:21 +02:00
|
|
|
qstring = "package=03&release=${releaseId}&file=02";
|
2016-06-02 16:18:02 +02:00
|
|
|
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
|
|
in fetchurl {
|
2012-01-08 20:29:07 +01:00
|
|
|
name = "${name}.tar.gz";
|
2016-06-02 16:18:02 +02:00
|
|
|
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
2016-06-02 18:17:04 +02:00
|
|
|
inherit sha256;
|
2012-01-08 20:29:07 +01:00
|
|
|
};
|
|
|
|
|
2016-06-02 16:29:16 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/^aqbanking_plugindir=/ {
|
|
|
|
c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
|
|
|
|
}' configure
|
|
|
|
'';
|
|
|
|
|
2014-02-23 12:21:19 +01:00
|
|
|
buildInputs = [ gmp gwenhywfar libtool libxml2 libxslt xmlsec zlib ];
|
2012-01-08 20:29:07 +01:00
|
|
|
|
2016-06-02 18:55:30 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
2012-01-08 20:29:07 +01:00
|
|
|
|
2016-06-02 16:29:16 +02:00
|
|
|
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
|
2012-01-08 20:29:07 +01:00
|
|
|
|
2014-02-23 12:21:19 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An interface to banking tasks, file formats and country information";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www2.aquamaniac.de/sites/download/packages.php?package=03&showall=1;
|
2013-11-05 00:04:36 +01:00
|
|
|
hydraPlatforms = [];
|
2014-02-23 12:44:18 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2014-02-23 12:21:19 +01:00
|
|
|
platforms = platforms.linux;
|
2012-01-08 20:29:07 +01:00
|
|
|
};
|
|
|
|
}
|