aqbanking: Move sources into a common sources.nix

The upstream URLs unfortunately aren't canonical, so let's have a
sources.nix which contains the release IDs used by the upstream sites to
associate a version of a particular package.

We're then going to create an updater script which should update the
sources.nix from there on.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @cillianderoiste, @urkud
This commit is contained in:
aszlig
2016-06-04 16:38:57 +02:00
parent af3ea69a96
commit db1162dce4
4 changed files with 20 additions and 9 deletions
@@ -7,13 +7,13 @@ stdenv.mkDerivation rec {
version = "5.6.10";
src = let
releaseNum = 206; # Change this on update
qstring = "package=03&release=${toString releaseNum}&file=01";
inherit ((import ./sources.nix).aqbanking) sha256 releaseId;
qstring = "package=03&release=${releaseId}&file=01";
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" ];
sha256 = "1x0isvpk43rq2zlyyb9p0kgjmqv7yq07vgkiprw3f5sjkykvxw6d";
inherit sha256;
};
postPatch = ''