generated from nix-dot-dev/getting-started-devenv-template
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move neovim flake into the overlay itself
Maintaing the flake in the official neovim repository became too much of a burden so we are moving it out to a nix-community repository. This is the opportunity to do more and add automation so that the neovim nix overlay doesnt ever break ! Co-authored-by: Riley Bruins <[email protected]> Co-authored-by: Matthieu Coudron <[email protected]> Co-authored-by: Will Ruggiano <[email protected]>
- Loading branch information
1 parent
7b5ca24
commit d659352
Showing
16 changed files
with
407 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake . --override-input neovim-src /path/to/neovim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake .#minimal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# nix | ||
# direnv | ||
/.direnv | ||
/.envrc | ||
|
||
# neovim-developer | ||
/runtime/ | ||
|
||
# nix | ||
result | ||
result-* | ||
.pre-commit-config.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{inputs, ...}: { | ||
perSystem = { | ||
pkgs, | ||
config, | ||
... | ||
}: { | ||
checks = { | ||
# TODO: not working: remove ? | ||
# shlint = pkgs.runCommand "shlint" { | ||
# nativeBuildInputs = [pkgs.shellcheck]; | ||
# preferLocalBuild = true; | ||
# } "make -C ${inputs.neovim-src} shlint > $out"; | ||
|
||
inherit | ||
(config.packages) | ||
neovim | ||
neovim-debug | ||
neovim-developer | ||
; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{inputs, ...}: { | ||
imports = [ | ||
inputs.hercules-ci-effects.flakeModule | ||
]; | ||
|
||
hercules-ci.flake-update = { | ||
enable = true; | ||
baseMerge.enable = true; | ||
baseMerge.method = "rebase"; | ||
autoMergeMethod = "rebase"; | ||
# Update everynight at midnight | ||
when = { | ||
hour = [0]; | ||
minute = 0; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{inputs, ...}: { | ||
imports = [ | ||
./checks.nix | ||
./ci.nix | ||
./devshells.nix | ||
./overlays.nix | ||
./packages | ||
inputs.pre-commit-hooks.flakeModule | ||
]; | ||
|
||
perSystem = {pkgs, ...}: { | ||
formatter = pkgs.alejandra; | ||
pre-commit.settings.hooks.alejandra.enable = true; | ||
|
||
# Neovim uses lua 5.1 as it is the version which supports JIT | ||
_module.args = { | ||
lua = pkgs.lua5_1; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.