vimPlugins.aw-watcher-vim: init at 2023-10-09

+34
+12
pkgs/applications/editors/vim/plugins/generated.nix
··· 1037 meta.homepage = "https://github.com/yetone/avante.nvim/"; 1038 }; 1039 1040 awesome-vim-colorschemes = buildVimPlugin { 1041 pname = "awesome-vim-colorschemes"; 1042 version = "2024-05-18";
··· 1037 meta.homepage = "https://github.com/yetone/avante.nvim/"; 1038 }; 1039 1040 + aw-watcher-vim = buildVimPlugin { 1041 + pname = "aw-watcher-vim"; 1042 + version = "2023-10-09"; 1043 + src = fetchFromGitHub { 1044 + owner = "ActivityWatch"; 1045 + repo = "aw-watcher-vim"; 1046 + rev = "4ba86d05a940574000c33f280fd7f6eccc284331"; 1047 + sha256 = "0kzpr2dgn80lcqbbf9ig6vx7azz6vbvadi31mxb0qyd91fyiidi3"; 1048 + }; 1049 + meta.homepage = "https://github.com/ActivityWatch/aw-watcher-vim/"; 1050 + }; 1051 + 1052 awesome-vim-colorschemes = buildVimPlugin { 1053 pname = "awesome-vim-colorschemes"; 1054 version = "2024-05-18";
+9
pkgs/applications/editors/vim/plugins/overrides.nix
··· 258 } 259 ); 260 261 bamboo-nvim = super.bamboo-nvim.overrideAttrs { 262 nvimSkipModule = [ 263 # Requires config table
··· 258 } 259 ); 260 261 + aw-watcher-vim = super.aw-watcher-vim.overrideAttrs { 262 + patches = [ 263 + (substituteAll { 264 + src = ./patches/aw-watcher-vim/program_paths.patch; 265 + curl = lib.getExe curl; 266 + }) 267 + ]; 268 + }; 269 + 270 bamboo-nvim = super.bamboo-nvim.overrideAttrs { 271 nvimSkipModule = [ 272 # Requires config table
+13
pkgs/applications/editors/vim/plugins/patches/aw-watcher-vim/program_paths.patch
···
··· 1 + diff --git a/plugin/activitywatch.vim b/plugin/activitywatch.vim 2 + index 6986553..7462b02 100644 3 + --- a/plugin/activitywatch.vim 4 + +++ b/plugin/activitywatch.vim 5 + @@ -29,7 +29,7 @@ let s:heartbeat_apiurl = printf('%s/heartbeat?pulsetime=30', s:bucket_apiurl) 6 + let s:http_response_code = {} 7 + 8 + function! HTTPPostJson(url, data) 9 + - let l:req = ['curl', '-s', a:url, 10 + + let l:req = ['@curl@', '-s', a:url, 11 + \ '-H', 'Content-Type: application/json', 12 + \ '-X', 'POST', 13 + \ '-d', json_encode(a:data),