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"; };