2014-01-16 01:44:37 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
let
|
2018-04-23 16:48:22 +02:00
|
|
|
version = "2.11.0";
|
2014-01-16 01:44:37 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "todo.txt-cli";
|
|
|
|
inherit version;
|
2014-01-16 01:44:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ginatrapani/todo.txt-cli/releases/download/v${version}/todo.txt_cli-${version}.tar.gz";
|
2018-04-23 16:48:22 +02:00
|
|
|
sha256 = "0majx8lcvhh8ji54qi0sxr833wchdss95fjc92byd8g3lfz27rsz";
|
2014-01-16 01:44:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vd $out/bin
|
|
|
|
install -vm 755 todo.sh $out/bin
|
|
|
|
install -vd $out/etc/bash_completion.d
|
|
|
|
install -vm 644 todo_completion $out/etc/bash_completion.d/todo
|
|
|
|
install -vd $out/etc/todo
|
|
|
|
install -vm 644 todo.cfg $out/etc/todo/config
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple plaintext todo list manager";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://todotxt.com;
|
2014-01-16 01:44:37 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|