diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-06-02 18:17:04 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-06-04 16:38:57 +0200 |
commit | db1162dce40172fe77a6ff46676d916b9d8f7098 (patch) | |
tree | 36bd5ff516c4e4254225f3020a3ed613d6f0ac35 /pkgs/development/libraries/aqbanking | |
parent | af3ea69a96d9a27be29378f7b11779586bbbbff4 (diff) |
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
Diffstat (limited to 'pkgs/development/libraries/aqbanking')
4 files changed, 20 insertions, 9 deletions
diff --git a/pkgs/development/libraries/aqbanking/default.nix b/pkgs/development/libraries/aqbanking/default.nix index 7fd511f427258..db8e4e49bcfba 100644 --- a/pkgs/development/libraries/aqbanking/default.nix +++ b/pkgs/development/libraries/aqbanking/default.nix @@ -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 = '' diff --git a/pkgs/development/libraries/aqbanking/gwenhywfar.nix b/pkgs/development/libraries/aqbanking/gwenhywfar.nix index b41e762aa770c..6a3bc2555350c 100644 --- a/pkgs/development/libraries/aqbanking/gwenhywfar.nix +++ b/pkgs/development/libraries/aqbanking/gwenhywfar.nix @@ -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 diff --git a/pkgs/development/libraries/aqbanking/libchipcard.nix b/pkgs/development/libraries/aqbanking/libchipcard.nix index 85539fc0128ae..f922aacf4d40b 100644 --- a/pkgs/development/libraries/aqbanking/libchipcard.nix +++ b/pkgs/development/libraries/aqbanking/libchipcard.nix @@ -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 ]; diff --git a/pkgs/development/libraries/aqbanking/sources.nix b/pkgs/development/libraries/aqbanking/sources.nix new file mode 100644 index 0000000000000..ae49abb44de36 --- /dev/null +++ b/pkgs/development/libraries/aqbanking/sources.nix @@ -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"; +} |