workrave: fix version format and tarball name

This commit is contained in:
Tobias Geerinckx-Rice 2016-04-24 15:09:17 +02:00
parent 693942b61a
commit ba71263545
No known key found for this signature in database
GPG Key ID: 91CCDB9B48541B99

View File

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