Compare commits
No commits in common. "2dcd1b795614547a55bf6196accd4641725ab290" and "9944604a38cfb16801fc70f45b30870e7c66fc71" have entirely different histories.
2dcd1b7956
...
9944604a38
|
@ -17,16 +17,14 @@ let
|
||||||
# I want at least python LSP to work everywhere because it's basically
|
# I want at least python LSP to work everywhere because it's basically
|
||||||
# an alternative to bash script when I move to OpenColo
|
# an alternative to bash script when I move to OpenColo
|
||||||
# pkgs.gccStdenv
|
# pkgs.gccStdenv
|
||||||
pkgs.gcc
|
# pkgs.gcc
|
||||||
pkgs.tree-sitter
|
# pkgs.tree-sitter
|
||||||
pkgs.fzf # file name fuzzy search
|
pkgs.fzf # file name fuzzy search
|
||||||
# pkgs.sumneko-lua-language-server
|
# pkgs.sumneko-lua-language-server
|
||||||
pkgs.ripgrep # content fuzzy search
|
pkgs.ripgrep # content fuzzy search
|
||||||
pkgs.zk # Zettelkasten (limited support)
|
pkgs.zk # Zettelkasten (limited support)
|
||||||
pkgs.fd # Required by a Telescope plugin (?)
|
pkgs.fd # Required by a Telescope plugin (?)
|
||||||
pkgs.stdenv.cc.cc.lib
|
pkgs.stdenv.cc.cc.lib
|
||||||
rust_pkgs
|
|
||||||
pkgs.rust-analyzer
|
|
||||||
# Python3 as alternative to bash scripts :^)
|
# Python3 as alternative to bash scripts :^)
|
||||||
# (pkgs.python310Full.withPackages (pypkgs: [
|
# (pkgs.python310Full.withPackages (pypkgs: [
|
||||||
# # python-lsp-server's dependencies is absolutely astronomous
|
# # python-lsp-server's dependencies is absolutely astronomous
|
||||||
|
@ -42,29 +40,18 @@ let
|
||||||
extensions = [ "rust-src" ];
|
extensions = [ "rust-src" ];
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
# NOTE: Failure 1: buildInputs is pretty much ignored
|
my_neovim = pkgs.neovim-unwrapped.overrideDerivation (old: {
|
||||||
# my_neovim = pkgs.neovim-unwrapped.overrideDerivation (old: {
|
# TODO: is there a more beautiful way to override propagatedBuildInputs?
|
||||||
# # TODO: is there a more beautiful way to override propagatedBuildInputs?
|
name = "hungtr-" + old.name;
|
||||||
# name = "hungtr-" + old.name;
|
buildInputs = (old.buildInputs or []) ++ [
|
||||||
# buildInputs = (old.buildInputs or []) ++ [
|
pkgs.tree-sitter # highlighting
|
||||||
# pkgs.tree-sitter # highlighting
|
rust_pkgs # for potentially rust-analyzer
|
||||||
# rust_pkgs # for potentially rust-analyzer
|
pkgs.fzf
|
||||||
# pkgs.fzf
|
pkgs.ripgrep
|
||||||
# pkgs.ripgrep
|
pkgs.zk
|
||||||
# pkgs.zk
|
pkgs.fd
|
||||||
# pkgs.fd
|
];
|
||||||
# ];
|
});
|
||||||
# NOTE: Failure 2: propagatedBuildInputs probably only concerns dyn libs
|
|
||||||
# });
|
|
||||||
# NOTE: Failure 3: must be unwrapped neovim because home-manager does the wrapping
|
|
||||||
# my_neovim = pkgs.neovim;
|
|
||||||
|
|
||||||
# NOTE: Add packages to nvim_pkgs instead, so that it's available at userspace
|
|
||||||
# and is added to the path after wrapping.
|
|
||||||
# check: nix repl `homeConfigurations.hungtr.config.programs.neovim.finalPackage.buildCommand`
|
|
||||||
# see: :/--suffix.*PATH
|
|
||||||
# there should be mentions of additional packages
|
|
||||||
my_neovim = pkgs.neovim-unwrapped;
|
|
||||||
inherit (myLib) fromYaml;
|
inherit (myLib) fromYaml;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -97,9 +84,7 @@ in
|
||||||
# pkgs.python310.numpy
|
# pkgs.python310.numpy
|
||||||
# pkgs.python310Packages.tensorflow
|
# pkgs.python310Packages.tensorflow
|
||||||
# pkgs.python310Packages.scikit-learn
|
# pkgs.python310Packages.scikit-learn
|
||||||
] ++ (myHome.packages or [ ])
|
] ++ (myHome.packages or [ ]) ++ nvim_pkgs);
|
||||||
# ++ nvim_pkgs
|
|
||||||
);
|
|
||||||
|
|
||||||
## Configs ##
|
## Configs ##
|
||||||
xdg.configFile."nvim/init.lua".source = "${proj_root.config.path}//neovim/init.lua";
|
xdg.configFile."nvim/init.lua".source = "${proj_root.config.path}//neovim/init.lua";
|
||||||
|
|
Loading…
Reference in New Issue