2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, gettext, xmlsec, zlib
|
2014-02-23 11:21:19 +00:00
|
|
|
}:
|
2012-01-08 19:29:07 +00:00
|
|
|
|
2018-04-27 15:24:21 +00:00
|
|
|
let
|
2022-07-10 17:36:57 +00:00
|
|
|
inherit ((import ./sources.nix).aqbanking) hash releaseId version;
|
2018-04-27 15:24:21 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "aqbanking";
|
2018-04-27 15:24:21 +00:00
|
|
|
inherit version;
|
2012-01-08 19:29:07 +00:00
|
|
|
|
2020-02-27 11:47:58 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
|
2022-07-10 17:36:57 +00:00
|
|
|
inherit hash;
|
2012-01-08 19:29:07 +00:00
|
|
|
};
|
|
|
|
|
2020-02-27 11:47:58 +00:00
|
|
|
# Set the include dir explicitly, this fixes a build error when building
|
|
|
|
# kmymoney because otherwise the includedir is overwritten by gwenhywfar's
|
|
|
|
# cmake file
|
2016-06-02 14:29:16 +00:00
|
|
|
postPatch = ''
|
2020-02-27 11:47:58 +00:00
|
|
|
sed -i '/^set_and_check(AQBANKING_INCLUDE_DIRS "@aqbanking_headerdir@")/i set_and_check(includedir "@includedir@")' aqbanking-config.cmake.in
|
2016-06-02 14:29:16 +00:00
|
|
|
sed -i -e '/^aqbanking_plugindir=/ {
|
|
|
|
c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
|
|
|
|
}' configure
|
|
|
|
'';
|
|
|
|
|
2014-02-23 11:21:19 +00:00
|
|
|
buildInputs = [ gmp gwenhywfar libtool libxml2 libxslt xmlsec zlib ];
|
2012-01-08 19:29:07 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext ];
|
2012-01-08 19:29:07 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-02-23 11:21:19 +00:00
|
|
|
description = "An interface to banking tasks, file formats and country information";
|
2022-01-07 06:24:44 +00:00
|
|
|
homepage = "https://www.aquamaniac.de/rdm/";
|
2013-11-04 23:04:36 +00:00
|
|
|
hydraPlatforms = [];
|
2014-02-23 11:44:18 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2014-02-23 11:21:19 +00:00
|
|
|
platforms = platforms.linux;
|
2012-01-08 19:29:07 +00:00
|
|
|
};
|
|
|
|
}
|