39 lines
975 B
Nix
39 lines
975 B
Nix
|
{
|
||
|
description = "Guanran928's nvim config";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = inputs:
|
||
|
inputs.flake-utils.lib.eachDefaultSystem (
|
||
|
system: let
|
||
|
inherit (inputs.nixpkgs) lib;
|
||
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||
|
in {
|
||
|
packages.default = let
|
||
|
runtimeDeps = with pkgs; [gcc];
|
||
|
in (
|
||
|
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
|
||
|
(pkgs.neovimUtils.makeNeovimConfig
|
||
|
{
|
||
|
customRC = ''
|
||
|
set runtimepath^=${./.}
|
||
|
source ${./.}/init.lua
|
||
|
'';
|
||
|
}
|
||
|
// {
|
||
|
wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];
|
||
|
})
|
||
|
);
|
||
|
|
||
|
devShells.default = pkgs.mkShell {
|
||
|
nativeBuildInputs = [
|
||
|
pkgs.stylua
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|