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-02 18:17:04 +02:00
parent af3ea69a96
commit db1162dce4
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961
4 changed files with 20 additions and 9 deletions

View file

@ -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 = ''

View file

@ -5,13 +5,13 @@ stdenv.mkDerivation rec {
version = "4.15.3";
src = let
releaseNum = 201; # Change this on update
qstring = "package=01&release=${toString releaseNum}&file=01";
inherit ((import ./sources.nix).gwenhywfar) sha256 releaseId;
qstring = "package=01&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 = "0fp67s932x66xfljb26zbrn8ambbc5y5c3hllr6l284nr63qf3ka";
inherit sha256;
};
postPatch = let

View file

@ -5,13 +5,13 @@ stdenv.mkDerivation rec {
version = "5.0.4";
src = let
releaseNum = 200; # Change this on update
qstring = "package=02&release=${toString releaseNum}&file=01";
inherit ((import ./sources.nix).libchipcard) sha256 releaseId;
qstring = "package=02&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 = "0fj2h39ll4kiv28ch8qgzdbdbnzs8gl812qnm660bw89rynpjnnj";
inherit sha256;
};
nativeBuildInputs = [ pkgconfig ];

View file

@ -0,0 +1,11 @@
{
gwenhywfar.version = "4.15.3";
gwenhywfar.sha256 = "0fp67s932x66xfljb26zbrn8ambbc5y5c3hllr6l284nr63qf3ka";
gwenhywfar.releaseId = "201";
libchipcard.version = "5.0.4";
libchipcard.sha256 = "0fj2h39ll4kiv28ch8qgzdbdbnzs8gl812qnm660bw89rynpjnnj";
libchipcard.releaseId = "200";
aqbanking.version = "5.6.10";
aqbanking.sha256 = "1x0isvpk43rq2zlyyb9p0kgjmqv7yq07vgkiprw3f5sjkykvxw6d";
aqbanking.releaseId = "206";
}