vimPlugins.fruzzy: init at 2019-10-28

Nick Hu a478f09d 0d470dc5

+72
+11
pkgs/misc/vim-plugins/generated.nix
··· 1320 1320 }; 1321 1321 }; 1322 1322 1323 + fruzzy = buildVimPluginFrom2Nix { 1324 + pname = "fruzzy"; 1325 + version = "2019-10-28"; 1326 + src = fetchFromGitHub { 1327 + owner = "raghur"; 1328 + repo = "fruzzy"; 1329 + rev = "b312ae79db98cf6939c8319f2511efa06889e8e3"; 1330 + sha256 = "01iisbawq2w7yw866qvv109amnvyaymzyz9nqal3cjrrcwk6mmdk"; 1331 + }; 1332 + }; 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 + 32 + # fruzzy dependency 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 + }); 216 + 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 + nimpy = fetchFromGitHub { 219 + owner = "yglukhov"; 220 + repo = "nimpy"; 221 + rev = "4840d1e438985af759ddf0923e7a9250fd8ea0da"; 222 + sha256 = "0qqklvaajjqnlqm3rkk36pwwnn7x942mbca7nf2cvryh36yg4q5k"; 223 + }; 224 + binaryheap = fetchFromGitHub { 225 + owner = "bluenote10"; 226 + repo = "nim-heap"; 227 + rev = "c38039309cb11391112571aa332df9c55f625b54"; 228 + sha256 = "05xdy13vm5n8dw2i366ppbznc4cfhq23rdcklisbaklz2jhdx352"; 229 + }; 230 + in super.fruzzy.overrideAttrs(old: { 231 + buildInputs = [ nim ]; 232 + patches = [ 233 + (substituteAll { 234 + src = ./patches/fruzzy/get_version.patch; 235 + version = old.version; 236 + }) 237 + ]; 238 + configurePhase = '' 239 + substituteInPlace Makefile \ 240 + --replace \ 241 + "nim c" \ 242 + "nim c --nimcache:$TMP --path:${nimpy} --path:${binaryheap}" 243 + ''; 244 + buildPhase = '' 245 + make build 246 + ''; 212 247 }); 213 248 214 249 ghcid = super.ghcid.overrideAttrs(old: {
+25
pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch
··· 1 + diff --git a/rplugin/python3/fruzzy_mod.nim b/rplugin/python3/fruzzy_mod.nim 2 + index dba0689..0109285 100644 3 + --- a/rplugin/python3/fruzzy_mod.nim 4 + +++ b/rplugin/python3/fruzzy_mod.nim 5 + @@ -12,9 +12,7 @@ when defined(profile): 6 + import nimprof 7 + 8 + proc getVersion(): string {.compileTime.}= 9 + - let ver = staticExec("git describe --tags --always --dirty").strip() 10 + - # let cTime = format(times.now(), "yyyy-MM-dd hh:mm:ss") 11 + - let branch = staticExec("git rev-parse --abbrev-ref HEAD").strip() 12 + + let ver = "@version@" 13 + var options:seq[string] = newSeq[string]() 14 + if not defined(removelogger): 15 + options.add("info") 16 + @@ -26,7 +24,7 @@ proc getVersion(): string {.compileTime.}= 17 + options.add("release") 18 + let optionsStr = options.join(",") 19 + 20 + - return &"rev: {ver} on branch: {branch} with options: {optionsStr}" 21 + + return &"version: {ver} with options: {optionsStr}" 22 + 23 + let L = newConsoleLogger(levelThreshold = logging.Level.lvlDebug) 24 + addHandler(L) 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 + raghur/fruzzy 372 373 raghur/vim-ghost 373 374 raichoo/purescript-vim 374 375 Raimondi/delimitMate