From ba71263545e7bd4c2b5a280d04621b04407e3c2a Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Apr 2016 15:09:17 +0200 Subject: [PATCH] workrave: fix version format and tarball name --- pkgs/applications/misc/workrave/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/workrave/default.nix b/pkgs/applications/misc/workrave/default.nix index 045767eb4136..f8ec86dd2b39 100644 --- a/pkgs/applications/misc/workrave/default.nix +++ b/pkgs/applications/misc/workrave/default.nix @@ -10,11 +10,15 @@ gdome2, gstreamer, libsigcxx }: stdenv.mkDerivation rec { - version = "v1_10_6"; + version = "1.10.6"; name = "workrave-${version}"; - src = fetchurl { - url = "http://github.com/rcaelers/workrave/archive/${version}.tar.gz"; + src = let + version_ = with stdenv.lib; + concatStringsSep "_" (splitString "." version); + in fetchurl { + name = "${name}.tar.gz"; + url = "http://github.com/rcaelers/workrave/archive/v${version_}.tar.gz"; sha256 = "0q2p83n33chbqzdcdm7ykfsy73frfi6drxzm4qidxwzpzsxrysgq"; };