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