Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aqbanking / default.nix
blob102703107c488097a32b446655d39f4e7c1b5d21
1 { lib, stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt
2 , pkg-config, gettext, xmlsec, zlib
3 }:
5 let
6   inherit ((import ./sources.nix).aqbanking) hash releaseId version;
7 in stdenv.mkDerivation rec {
8   pname = "aqbanking";
9   inherit version;
11   src = fetchurl {
12     url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
13     inherit hash;
14   };
16   # Set the include dir explicitly, this fixes a build error when building
17   # kmymoney because otherwise the includedir is overwritten by gwenhywfar's
18   # cmake file
19   postPatch = ''
20     sed -i '/^set_and_check(AQBANKING_INCLUDE_DIRS "@aqbanking_headerdir@")/i set_and_check(includedir "@includedir@")' aqbanking-config.cmake.in
21     sed -i -e '/^aqbanking_plugindir=/ {
22       c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
23     }' configure
24   '';
26   buildInputs = [ gmp gwenhywfar libtool libxml2 libxslt xmlsec zlib ];
28   nativeBuildInputs = [ pkg-config gettext ];
30   meta = with lib; {
31     description = "An interface to banking tasks, file formats and country information";
32     homepage = "https://www.aquamaniac.de/rdm/";
33     hydraPlatforms = [];
34     license = licenses.gpl2Plus;
35     maintainers = with maintainers; [ goibhniu ];
36     platforms = platforms.linux;
37   };