File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed
pkgs/applications/editors/vim/plugins
non-generated/blink-pairs Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ pkg-config ,
6+ vimUtils ,
7+ stdenv ,
8+ nix-update-script ,
9+ } :
10+ let
11+ version = "0.2.0" ;
12+
13+ src = fetchFromGitHub {
14+ owner = "Saghen" ;
15+ repo = "blink.pairs" ;
16+ tag = "v${ version } " ;
17+ hash = "sha256-fOOo+UnrbQJFWyqjpiFwhytlPoPRnUlGswQdZb3/ws0=" ;
18+ } ;
19+
20+ blink-pairs-lib = rustPlatform . buildRustPackage {
21+ pname = "blink-pairs" ;
22+ inherit version src ;
23+
24+ useFetchCargoVendor = true ;
25+ cargoHash = "sha256-vkybRuym1yibaw943Gs9luYLdYEp4tgvA8e4maATiTY=" ;
26+
27+ nativeBuildInputs = [
28+ pkg-config
29+ ] ;
30+ } ;
31+ in
32+ vimUtils . buildVimPlugin {
33+ pname = "blink.pairs" ;
34+ inherit version src ;
35+
36+ preInstall =
37+ let
38+ ext = stdenv . hostPlatform . extensions . sharedLibrary ;
39+ in
40+ ''
41+ mkdir -p target/release
42+ ln -s ${ blink-pairs-lib } /lib/libblink_pairs${ ext } target/release/
43+ '' ;
44+
45+ passthru = {
46+ updateScript = nix-update-script {
47+ attrPath = "vimPlugins.blink-pairs.blink-pairs-lib" ;
48+ } ;
49+
50+ # needed for the update script
51+ inherit blink-pairs-lib ;
52+ } ;
53+
54+ meta = {
55+ description = "Rainbow highlighting and intelligent auto-pairs for Neovim" ;
56+ homepage = "https://github.com/Saghen/blink.pairs" ;
57+ changelog = "https://github.com/Saghen/blink.pairs/blob/${ src . tag } /CHANGELOG.md" ;
58+ license = lib . licenses . mit ;
59+ maintainers = with lib . maintainers ; [ isabelroses ] ;
60+ } ;
61+ }
Original file line number Diff line number Diff line change 308308 dependencies = [ self . plenary-nvim ] ;
309309 } ;
310310
311+ blink-pairs = callPackage ./non-generated/blink-pairs { } ;
312+
311313 bluloco-nvim = super . bluloco-nvim . overrideAttrs {
312314 dependencies = [ self . lush-nvim ] ;
313315 } ;
You can’t perform that action at this time.
0 commit comments