aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-27 08:42:57 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-27 08:42:57 +0100
commit1bf383a5f71b17274a6683e096508a7d0e004bc2 (patch)
tree2cfea94d25edbebf38da0b8d2bc3ab22fe03f28f
parent60d328e2558e982d441f64b54e089b0e1f6b70f9 (diff)
downloadNix-1bf383a5f71b17274a6683e096508a7d0e004bc2.tar.gz
Nix-1bf383a5f71b17274a6683e096508a7d0e004bc2.tar.zst
Nix-1bf383a5f71b17274a6683e096508a7d0e004bc2.zip
Patch taskwarrior for truncated descriptions
-rw-r--r--overlays/taskwarrior/TW-1778_patch.diff12
-rw-r--r--overlays/taskwarrior/default.nix3
2 files changed, 15 insertions, 0 deletions
diff --git a/overlays/taskwarrior/TW-1778_patch.diff b/overlays/taskwarrior/TW-1778_patch.diff
new file mode 100644
index 0000000..6d7e376
--- /dev/null
+++ b/overlays/taskwarrior/TW-1778_patch.diff
@@ -0,0 +1,12 @@
1--- a/src/text.cpp 2016-02-24 23:18:11.000000000 +0100
2+++ b/src/text.cpp 2020-02-26 18:53:15.869331031 +0100
3@@ -248,7 +248,7 @@
4 // Premature EOL.
5 if (character == '\n')
6 {
7- line = text.substr (offset, line_length);
8+ line = text.substr (offset, prior_cursor-offset);
9 offset = cursor;
10 return true;
11 }
12
diff --git a/overlays/taskwarrior/default.nix b/overlays/taskwarrior/default.nix
index 64ea690..9ca52b8 100644
--- a/overlays/taskwarrior/default.nix
+++ b/overlays/taskwarrior/default.nix
@@ -1,6 +1,9 @@
1self: super: 1self: super:
2{ 2{
3 taskwarrior = super.taskwarrior.overrideAttrs (old: { 3 taskwarrior = super.taskwarrior.overrideAttrs (old: {
4 patches = old.patches or [] ++ [
5 ./TW-1778_patch.diff
6 ];
4 postInstall = ''${old.postInstall} 7 postInstall = ''${old.postInstall}
5 mkdir -p "$out/share/vim/vimfiles/ftdetect" 8 mkdir -p "$out/share/vim/vimfiles/ftdetect"
6 mkdir -p "$out/share/vim/vimfiles/syntax" 9 mkdir -p "$out/share/vim/vimfiles/syntax"