1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/office/todo.txt-cli/default.nix

29 lines
802 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
let
version = "2.11.0";
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "todo.txt-cli";
inherit version;
src = fetchurl {
url = "https://github.com/ginatrapani/todo.txt-cli/releases/download/v${version}/todo.txt_cli-${version}.tar.gz";
sha256 = "0majx8lcvhh8ji54qi0sxr833wchdss95fjc92byd8g3lfz27rsz";
};
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";
homepage = http://todotxt.com;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.all;
};
}