nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 gmp,
6 gwenhywfar,
7 libtool,
8 libxml2,
9 libxslt,
10 pkg-config,
11 gettext,
12 xmlsec,
13 zlib,
14}:
15
16let
17 inherit ((import ./sources.nix).aqbanking) hash releaseId version;
18in
19stdenv.mkDerivation rec {
20 pname = "aqbanking";
21 inherit version;
22
23 src = fetchurl {
24 url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/aqbanking-${version}.tar.gz";
25 inherit hash;
26 };
27
28 # Set the include dir explicitly, this fixes a build error when building
29 # kmymoney because otherwise the includedir is overwritten by gwenhywfar's
30 # cmake file
31 postPatch = ''
32 sed -i '/^set_and_check(AQBANKING_INCLUDE_DIRS "@aqbanking_headerdir@")/i set_and_check(includedir "@includedir@")' aqbanking-config.cmake.in
33 sed -i -e '/^aqbanking_plugindir=/ {
34 c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
35 }' configure
36 '';
37
38 buildInputs = [
39 gmp
40 gwenhywfar
41 libtool
42 libxml2
43 libxslt
44 xmlsec
45 zlib
46 ];
47
48 nativeBuildInputs = [
49 pkg-config
50 gettext
51 ];
52
53 meta = {
54 description = "Interface to banking tasks, file formats and country information";
55 homepage = "https://www.aquamaniac.de/rdm/";
56 hydraPlatforms = [ ];
57 license = lib.licenses.gpl2Plus;
58 maintainers = [ ];
59 platforms = lib.platforms.linux;
60 };
61}