2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tudu";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.10.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://code.meskio.net/tudu/${pname}-${version}.tar.gz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "14srqn968ii3sr4v6xc5zzs50dmm9am22lrm57j7n0rhjclwbssy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.cc.isClang ''
|
2020-05-29 06:06:01 +00:00
|
|
|
substituteInPlace configure \
|
|
|
|
--replace 'echo "main()' 'echo "int main()'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ncurses-based hierarchical todo list manager with vim-like keybindings";
|
|
|
|
homepage = "https://code.meskio.net/tudu/";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|