diff options
Diffstat (limited to 'pkgs/development/libraries')
4 files changed, 20 insertions, 9 deletions
diff --git a/pkgs/development/libraries/aqbanking/default.nix b/pkgs/development/libraries/aqbanking/default.nix index 7fd511f42725..db8e4e49bcfb 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 b41e762aa770..6a3bc2555350 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 85539fc0128a..f922aacf4d40 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 000000000000..ae49abb44de3 --- /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"; +} |