flake: simplify
This commit is contained in:
parent
fe810aa91b
commit
92c04f4bd8
1 changed files with 9 additions and 11 deletions
20
flake.nix
20
flake.nix
|
@ -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};
|
||||||
|
runtimeDeps = with pkgs; [
|
||||||
|
# mason / tree-sitter
|
||||||
|
gcc
|
||||||
|
cargo
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
packages.default = let
|
packages.default =
|
||||||
runtimeDeps = with pkgs; [
|
|
||||||
# mason / tree-sitter
|
|
||||||
gcc
|
|
||||||
cargo
|
|
||||||
];
|
|
||||||
in
|
|
||||||
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue