summary refs log tree commit diff
path: root/pkgs/applications/office/tudu/default.nix
blob: 6094e02c5c1b6869f5e9161419152d422e781b9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, ncurses }:

stdenv.mkDerivation rec {
  pname = "tudu";
  version = "0.10.4";

  src = fetchurl {
    url = "https://code.meskio.net/tudu/${pname}-${version}.tar.gz";
    sha256 = "14srqn968ii3sr4v6xc5zzs50dmm9am22lrm57j7n0rhjclwbssy";
  };

  buildInputs = [ ncurses ];

  preConfigure = stdenv.lib.optionalString stdenv.cc.isClang ''
    substituteInPlace configure \
      --replace 'echo "main()' 'echo "int main()'
  '';

  meta = with stdenv.lib; {
    description = "ncurses-based hierarchical todo list manager with vim-like keybindings";
    homepage = "https://code.meskio.net/tudu/";
    license = licenses.gpl3;
    platforms = platforms.unix;
  };
}