flake: simplify

This commit is contained in:
Guanran Wang 2024-02-21 09:49:32 +08:00
parent fe810aa91b
commit 92c04f4bd8
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -11,17 +11,15 @@
system: let
inherit (inputs.nixpkgs) lib;
pkgs = inputs.nixpkgs.legacyPackages.${system};
runtimeDeps = with pkgs; [
# mason / tree-sitter
gcc
cargo
];
in {
packages.default = let
runtimeDeps = with pkgs; [
# mason / tree-sitter
gcc
cargo
];
in
packages.default =
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
(pkgs.neovimUtils.makeNeovimConfig
{
(pkgs.neovimUtils.makeNeovimConfig {
customRC = ''
set runtimepath^=${./.}
source ${./.}/init.lua
@ -32,8 +30,8 @@
});
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.stylua
nativeBuildInputs = with pkgs; [
stylua
];
};
}