vimPlugins.sg-nvim: init at 2023-01-27

This commit is contained in:
figsoda 2023-01-28 23:39:32 -05:00
parent 44560dde88
commit ae3cadc174
3 changed files with 44 additions and 0 deletions

View File

@ -7403,6 +7403,18 @@ final: prev:
meta.homepage = "https://github.com/junegunn/seoul256.vim/";
};
sg-nvim = buildVimPluginFrom2Nix {
pname = "sg.nvim";
version = "2023-01-27";
src = fetchFromGitHub {
owner = "tjdevries";
repo = "sg.nvim";
rev = "6eb1a0dbff6d52b2f3b5d9789fb7307755c8ea1f";
sha256 = "1pcifz7fjdk2fp9xnmc67h2dbvy7ynvh5m8a8il8chy71sx5jnvi";
};
meta.homepage = "https://github.com/tjdevries/sg.nvim/";
};
shabadou-vim = buildVimPluginFrom2Nix {
pname = "shabadou.vim";
version = "2016-07-19";

View File

@ -68,6 +68,9 @@
# nvim-treesitter dependencies
, callPackage
# sg.nvim dependencies
, darwin
# sved dependencies
, glib
, gobject-introspection
@ -748,6 +751,34 @@ self: super: {
];
});
sg-nvim = super.sg-nvim.overrideAttrs (old:
let
sg-nvim-rust = rustPlatform.buildRustPackage {
pname = "sg-nvim-rust";
inherit (old) version src;
cargoHash = "sha256-lrVwmJqfERq/tj4u+kRJ0kgbPQaFNAR6M3d4GqIJJyU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
cargoBuildFlags = [ "--workspace" ];
# tests are broken
doCheck = false;
};
in
{
dependencies = with self; [ plenary-nvim ];
postInstall = ''
mkdir -p $out/target/debug
ln -s ${sg-nvim-rust}/{bin,lib}/* $out/target/debug
'';
});
skim = buildVimPluginFrom2Nix {
pname = "skim";
inherit (skim) version;

View File

@ -622,6 +622,7 @@ https://github.com/megaannum/self/,,
https://github.com/jaxbot/semantic-highlight.vim/,,
https://github.com/numirias/semshi/,,
https://github.com/junegunn/seoul256.vim/,,
https://github.com/tjdevries/sg.nvim/,HEAD,
https://github.com/osyo-manga/shabadou.vim/,,
https://github.com/AndrewRadev/sideways.vim/,,
https://github.com/lotabout/skim.vim/,,