libchipcard: Don't hardcode version

This is to make sure that we don't get a disparity between the version
in sources.nix and the version in the package expression and it's mostly
to get the package expression in par with aqbanking and gwenhywfar.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @goibhniu
This commit is contained in:
aszlig 2018-04-27 17:32:27 +02:00
parent 191f4c210a
commit cc909ff4dd
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691

View File

@ -1,11 +1,12 @@
{ stdenv, fetchurl, pkgconfig, gwenhywfar, pcsclite, zlib }:
stdenv.mkDerivation rec {
let
inherit ((import ./sources.nix).libchipcard) sha256 releaseId version;
in stdenv.mkDerivation rec {
name = "libchipcard-${version}";
version = "5.0.4";
inherit version;
src = let
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 {