2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2014-01-16 01:44:37 +01:00
|
|
|
let
|
2020-08-31 05:08:13 +02:00
|
|
|
version = "2.12.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";
|
2020-08-31 05:08:13 +02:00
|
|
|
sha256 = "0gni8nj3wwdf7nl98d1bpx064bz5xari65hb998qqr92h0n9pnp6";
|
2014-01-16 01:44:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vd $out/bin
|
|
|
|
install -vm 755 todo.sh $out/bin
|
2020-11-12 22:22:18 +01:00
|
|
|
install -vd $out/share/bash-completion/completions
|
|
|
|
install -vm 644 todo_completion $out/share/bash-completion/completions/todo
|
2014-01-16 01:44:37 +01:00
|
|
|
install -vd $out/etc/todo
|
|
|
|
install -vm 644 todo.cfg $out/etc/todo/config
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple plaintext todo list manager";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://todotxt.com";
|
2021-01-15 06:42:41 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.all;
|
2014-01-16 01:44:37 +01:00
|
|
|
};
|
|
|
|
}
|