forked from mirrors/nixpkgs
Upstream changes in 4.20.0: * Update bank information files for German banks because the format of ZKA files has changed in the meantime. Upstream release notes in German: https://www.aquamaniac.de/sites/download/releasenote.php?package=01&release=208 Upstream changes in 4.19.0: * Add frontend for GTK3. Upstream release notes in German: https://www.aquamaniac.de/sites/download/releasenote.php?package=01&release=207 Upstream changes in 4.18.0: * Show hashes for MD5, SHA1 and SHA512 in SSL certificates because some bank servers display different hashing variants. * Let GNUTLS handle the localisation of TrustStore certificates. Upstream release notes in German: https://www.aquamaniac.de/sites/download/releasenote.php?package=01&release=206 The updater script (update.sh) actually didn't get the right file to download, so I temporarily modified it to download file number 2 because file number 1 is the GPG signature. The reason why I didn't fix the updater is because the upstream site will have different URLs in the next upcoming version, so our updater is basically end-of-life for now. I also changed the package expression to use the version from sources.nix instead of a hardcoded value. Signed-off-by: aszlig <aszlig@nix.build> Cc: @goibhniu
61 lines
1.8 KiB
Nix
61 lines
1.8 KiB
Nix
{ stdenv, fetchurl, gnutls, gtk2, libgcrypt, pkgconfig, gettext, qt4
|
|
|
|
, pluginSearchPaths ? [
|
|
"/run/current-system/sw/lib/gwenhywfar/plugins"
|
|
".nix-profile/lib/gwenhywfar/plugins"
|
|
]
|
|
}:
|
|
|
|
let
|
|
inherit ((import ./sources.nix).gwenhywfar) sha256 releaseId version;
|
|
in stdenv.mkDerivation rec {
|
|
name = "gwenhywfar-${version}";
|
|
inherit version;
|
|
|
|
src = let
|
|
qstring = "package=01&release=${releaseId}&file=02";
|
|
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
in fetchurl {
|
|
name = "${name}.tar.gz";
|
|
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
|
inherit sha256;
|
|
};
|
|
|
|
postPatch = let
|
|
isRelative = path: builtins.substring 0 1 path != "/";
|
|
mkSearchPath = path: ''
|
|
p; g; s,\<PLUGINDIR\>,"${path}",g;
|
|
'' + stdenv.lib.optionalString (isRelative path) ''
|
|
s/AddPath(\(.*\));/AddRelPath(\1, GWEN_PathManager_RelModeHome);/g
|
|
'';
|
|
|
|
in ''
|
|
sed -i -e '/GWEN_PathManager_DefinePath.*GWEN_PM_PLUGINDIR/,/^#endif/ {
|
|
/^#if/,/^#endif/ {
|
|
H; /^#endif/ {
|
|
${stdenv.lib.concatMapStrings mkSearchPath pluginSearchPaths}
|
|
}
|
|
}
|
|
}' src/gwenhywfar.c
|
|
|
|
# Strip off the effective SO version from the path so that for example
|
|
# "lib/gwenhywfar/plugins/60" becomes just "lib/gwenhywfar/plugins".
|
|
sed -i -e '/^gwenhywfar_plugindir=/s,/\''${GWENHYWFAR_SO_EFFECTIVE},,' \
|
|
configure
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
|
|
|
buildInputs = [ gtk2 qt4 gnutls libgcrypt ];
|
|
|
|
QTDIR = qt4;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "OS abstraction functions used by aqbanking and related tools";
|
|
homepage = http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1;
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|