2016-06-21 20:56:07 +02:00
|
|
|
{ stdenv, fetchurl, cmake, libuuid, gnutls }:
|
2016-04-01 09:46:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "timewarrior-${version}";
|
2016-07-28 10:57:19 +02:00
|
|
|
version = "1.0.0.beta1";
|
2016-04-01 09:46:48 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-06-21 20:56:07 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://taskwarrior.org/download/timew-${version}.tar.gz";
|
2016-07-28 10:57:19 +02:00
|
|
|
sha256 = "1gkh07mw8hiqslw8ps35r9lp5jbdy93s0sdrcbp34dd5h99qx587";
|
2016-04-01 09:46:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2016-06-21 20:56:07 +02:00
|
|
|
installPhase = ''
|
2016-08-11 17:54:49 +02:00
|
|
|
mkdir -p $out/{bin,share/man/man1}
|
|
|
|
cp -rv doc/man/*.1 $out/share/man/man1
|
2016-06-21 20:56:07 +02:00
|
|
|
cp src/timew $out/bin/
|
|
|
|
'';
|
|
|
|
|
2016-04-01 09:46:48 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A command-line time tracker";
|
|
|
|
homepage = http://tasktools.org/projects/timewarrior.html;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|