robin/ivy

my custom neovim config

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

robinnix: use laufey40578c2

main
1014 B38 linesraw
1{
2  lib,
3  tree-sitter,
4  clang,
5  libclang,
6  rustPlatform,
7  dependencies,
8  ...
9}:
10let
11  cargoHash = "sha256-7nsDslE+7U6YUs1gsMNSqOI2D0yBPKZndnWHida3K6M=";
12in
13tree-sitter.overrideAttrs (oa: {
14  src = dependencies.treesitter;
15  version = "bundled";
16  inherit cargoHash;
17  cargoDeps = rustPlatform.fetchCargoVendor {
18    name = "${oa.pname}-cargo-deps";
19    src = dependencies.treesitter;
20    hash = cargoHash;
21  };
22  # Disable patches applied by the nixpkgs tree-sitter derivation as they clash with this revision of TS.
23  # The equivalent patching is done below in `postPatch`
24  patches = [ ];
25
26  # clang is needed by the quickjs-sys crate to compile quickjs
27  nativeBuildInputs = [
28    clang
29  ]
30  ++ oa.nativeBuildInputs;
31  env.LIBCLANG_PATH = "${lib.getLib libclang}/lib";
32
33  postPatch = ''
34    ${oa.postPatch}
35    sed -e 's/playground::serve(.*$/println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); std::process::exit(1);/' \
36        -i crates/cli/src/main.rs
37  '';
38})