tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
vimPlugins.fruzzy: init at 2019-10-28
Nick Hu
5 years ago
a478f09d
0d470dc5
+72
4 changed files
expand all
collapse all
unified
split
pkgs
misc
vim-plugins
generated.nix
overrides.nix
patches
fruzzy
get_version.patch
vim-plugin-names
+11
pkgs/misc/vim-plugins/generated.nix
···
1320
1320
};
1321
1321
};
1322
1322
1323
1323
+
fruzzy = buildVimPluginFrom2Nix {
1324
1324
+
pname = "fruzzy";
1325
1325
+
version = "2019-10-28";
1326
1326
+
src = fetchFromGitHub {
1327
1327
+
owner = "raghur";
1328
1328
+
repo = "fruzzy";
1329
1329
+
rev = "b312ae79db98cf6939c8319f2511efa06889e8e3";
1330
1330
+
sha256 = "01iisbawq2w7yw866qvv109amnvyaymzyz9nqal3cjrrcwk6mmdk";
1331
1331
+
};
1332
1332
+
};
1333
1333
+
1323
1334
fugitive-gitlab-vim = buildVimPluginFrom2Nix {
1324
1335
pname = "fugitive-gitlab-vim";
1325
1336
version = "2019-10-24";
+35
pkgs/misc/vim-plugins/overrides.nix
···
28
28
29
29
# vCoolor dependency
30
30
, gnome3
31
31
+
32
32
+
# fruzzy dependency
33
33
+
, nim
31
34
}:
32
35
33
36
self: super: {
···
209
212
210
213
forms = super.forms.overrideAttrs(old: {
211
214
dependencies = with super; [ super.self ];
215
215
+
});
216
216
+
217
217
+
fruzzy = let # until https://github.com/NixOS/nixpkgs/pull/67878 is merged, there's no better way to install nim libraries with nix
218
218
+
nimpy = fetchFromGitHub {
219
219
+
owner = "yglukhov";
220
220
+
repo = "nimpy";
221
221
+
rev = "4840d1e438985af759ddf0923e7a9250fd8ea0da";
222
222
+
sha256 = "0qqklvaajjqnlqm3rkk36pwwnn7x942mbca7nf2cvryh36yg4q5k";
223
223
+
};
224
224
+
binaryheap = fetchFromGitHub {
225
225
+
owner = "bluenote10";
226
226
+
repo = "nim-heap";
227
227
+
rev = "c38039309cb11391112571aa332df9c55f625b54";
228
228
+
sha256 = "05xdy13vm5n8dw2i366ppbznc4cfhq23rdcklisbaklz2jhdx352";
229
229
+
};
230
230
+
in super.fruzzy.overrideAttrs(old: {
231
231
+
buildInputs = [ nim ];
232
232
+
patches = [
233
233
+
(substituteAll {
234
234
+
src = ./patches/fruzzy/get_version.patch;
235
235
+
version = old.version;
236
236
+
})
237
237
+
];
238
238
+
configurePhase = ''
239
239
+
substituteInPlace Makefile \
240
240
+
--replace \
241
241
+
"nim c" \
242
242
+
"nim c --nimcache:$TMP --path:${nimpy} --path:${binaryheap}"
243
243
+
'';
244
244
+
buildPhase = ''
245
245
+
make build
246
246
+
'';
212
247
});
213
248
214
249
ghcid = super.ghcid.overrideAttrs(old: {
+25
pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch
···
1
1
+
diff --git a/rplugin/python3/fruzzy_mod.nim b/rplugin/python3/fruzzy_mod.nim
2
2
+
index dba0689..0109285 100644
3
3
+
--- a/rplugin/python3/fruzzy_mod.nim
4
4
+
+++ b/rplugin/python3/fruzzy_mod.nim
5
5
+
@@ -12,9 +12,7 @@ when defined(profile):
6
6
+
import nimprof
7
7
+
8
8
+
proc getVersion(): string {.compileTime.}=
9
9
+
- let ver = staticExec("git describe --tags --always --dirty").strip()
10
10
+
- # let cTime = format(times.now(), "yyyy-MM-dd hh:mm:ss")
11
11
+
- let branch = staticExec("git rev-parse --abbrev-ref HEAD").strip()
12
12
+
+ let ver = "@version@"
13
13
+
var options:seq[string] = newSeq[string]()
14
14
+
if not defined(removelogger):
15
15
+
options.add("info")
16
16
+
@@ -26,7 +24,7 @@ proc getVersion(): string {.compileTime.}=
17
17
+
options.add("release")
18
18
+
let optionsStr = options.join(",")
19
19
+
20
20
+
- return &"rev: {ver} on branch: {branch} with options: {optionsStr}"
21
21
+
+ return &"version: {ver} with options: {optionsStr}"
22
22
+
23
23
+
let L = newConsoleLogger(levelThreshold = logging.Level.lvlDebug)
24
24
+
addHandler(L)
25
25
+
+1
pkgs/misc/vim-plugins/vim-plugin-names
···
369
369
racer-rust/vim-racer
370
370
rafaqz/ranger.vim
371
371
rafi/awesome-vim-colorschemes
372
372
+
raghur/fruzzy
372
373
raghur/vim-ghost
373
374
raichoo/purescript-vim
374
375
Raimondi/delimitMate