mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
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:
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 = ''
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ];
|
||||
|
|
11
pkgs/development/libraries/aqbanking/sources.nix
Normal file
11
pkgs/development/libraries/aqbanking/sources.nix
Normal 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";
|
||||
}
|
Loading…
Reference in a new issue