From cc909ff4dd02bcd7e632b7174d2599fa8f00dd7f Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 27 Apr 2018 17:32:27 +0200 Subject: [PATCH] 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 Cc: @goibhniu --- pkgs/development/libraries/aqbanking/libchipcard.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/aqbanking/libchipcard.nix b/pkgs/development/libraries/aqbanking/libchipcard.nix index 1ac00c3fe88..9a0b70e0d97 100644 --- a/pkgs/development/libraries/aqbanking/libchipcard.nix +++ b/pkgs/development/libraries/aqbanking/libchipcard.nix @@ -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 {