From a1d42293ec90191419bdee781b5075e592c6fc6f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 21 Jun 2016 20:56:07 +0200 Subject: [PATCH] timewarrior: 2016-03-29 -> 0.9.5.alpha Also: Switch to use `fetchurl` instead of `fetchgit` --- pkgs/applications/misc/timewarrior/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/timewarrior/default.nix b/pkgs/applications/misc/timewarrior/default.nix index 0946f6d49751..f49e6321caed 100644 --- a/pkgs/applications/misc/timewarrior/default.nix +++ b/pkgs/applications/misc/timewarrior/default.nix @@ -1,19 +1,24 @@ -{ stdenv, fetchgit, cmake, libuuid, gnutls }: +{ stdenv, fetchurl, cmake, libuuid, gnutls }: stdenv.mkDerivation rec { name = "timewarrior-${version}"; - version = "2016-03-29"; + version = "0.9.5.alpha"; enableParallelBuilding = true; - src = fetchgit { - url = "https://git.tasktools.org/scm/tm/timew.git"; - rev = "2175849a81ddd03707dca7b4c9d69d8fa11e35f7"; - sha256 = "0clhbm6093wnvpq0ypvx95095amvlzab0sz9kiflasw9mgnwisrv"; + src = fetchurl { + url = "https://taskwarrior.org/download/timew-${version}.tar.gz"; + sha256 = "154d5sgxcmz1b7g401c7s6sf7pkk0hh74dx6rss3vkamsjc4wgl8"; }; nativeBuildInputs = [ cmake ]; + installPhase = '' + mkdir -p $out/{bin,share} + cp -rv doc/man $out/share/ + cp src/timew $out/bin/ + ''; + meta = with stdenv.lib; { description = "A command-line time tracker"; homepage = http://tasktools.org/projects/timewarrior.html;