1 { lib, stdenv, fetchurl }:
4 in stdenv.mkDerivation {
5 pname = "todo.txt-cli";
9 url = "https://github.com/ginatrapani/todo.txt-cli/releases/download/v${version}/todo.txt_cli-${version}.tar.gz";
10 sha256 = "0gni8nj3wwdf7nl98d1bpx064bz5xari65hb998qqr92h0n9pnp6";
15 install -vm 755 todo.sh $out/bin
16 install -vd $out/share/bash-completion/completions
17 install -vm 644 todo_completion $out/share/bash-completion/completions/todo
18 install -vd $out/etc/todo
19 install -vm 644 todo.cfg $out/etc/todo/config
23 description = "Simple plaintext todo list manager";
24 homepage = "http://todotxt.com";
25 license = lib.licenses.gpl3;
26 mainProgram = "todo.sh";
27 platforms = lib.platforms.all;