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