robin/ivy

my custom neovim config

git clone https://git.robinwobin.dev/robin/ivy

robinflake: vendor neovim-nightly-overlay6b56989

main
623 B27 linesraw
1{
2  lib,
3  fetchurl,
4  neovim-src,
5  ...
6}:
7lib.pipe "${neovim-src}/cmake.deps/deps.txt" [
8  builtins.readFile
9  (lib.splitString "\n")
10  (map (builtins.match "([A-Z0-9_]+)_(URL|SHA256)[[:space:]]+([^[:space:]]+)[[:space:]]*"))
11  (lib.remove null)
12  (lib.flip builtins.foldl' { } (
13    acc: matches:
14    let
15      name = lib.toLower (builtins.elemAt matches 0);
16      key = lib.toLower (builtins.elemAt matches 1);
17      value = lib.toLower (builtins.elemAt matches 2);
18    in
19    acc
20    // {
21      ${name} = acc.${name} or { } // {
22        ${key} = value;
23      };
24    }
25  ))
26  (builtins.mapAttrs (lib.const fetchurl))
27]