summary refs log tree commit diff
path: root/pkgs/development/libraries/aqbanking/libchipcard.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-06-02 18:17:04 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-06-04 16:38:57 +0200
commitdb1162dce40172fe77a6ff46676d916b9d8f7098 (patch)
tree36bd5ff516c4e4254225f3020a3ed613d6f0ac35 /pkgs/development/libraries/aqbanking/libchipcard.nix
parentaf3ea69a96d9a27be29378f7b11779586bbbbff4 (diff)
downloadnixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar.gz
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar.bz2
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar.lz
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar.xz
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.tar.zst
nixpkgs-db1162dce40172fe77a6ff46676d916b9d8f7098.zip
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/libchipcard.nix')
-rw-r--r--pkgs/development/libraries/aqbanking/libchipcard.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aqbanking/libchipcard.nix b/pkgs/development/libraries/aqbanking/libchipcard.nix
index 85539fc0128..f922aacf4d4 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 ];