forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for template and fixed check export for lib (nix-community…
- Loading branch information
1 parent
ecaf80b
commit 3600698
Showing
8 changed files
with
40 additions
and
9 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
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# Args probably only needs pkgs and lib | ||
args: { | ||
{ | ||
makeNixvim, | ||
pkgs, | ||
... | ||
} @ args: { | ||
# Add all exported modules here | ||
check = import ./check.nix args; | ||
check = import ../tests/test-derivation.nix { | ||
inherit makeNixvim pkgs; | ||
}; | ||
helpers = import ./helpers.nix args; | ||
} |
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,9 @@ | ||
# templates/_wrapper | ||
|
||
This directory contains wrapper flakes for the nixvim templates. | ||
The purpose of the wrappers is to be able to run tests on templates deterministically on the branch or PR that is being worked on. | ||
It does this by overwriting the url of nixvim and other dependencies to a path within this repo. | ||
|
||
It is also used in the github workflows, so that we can always check if the template is working or not | ||
|
||
NOTE: It is important that we do not commit the `flake.lock` files here as that could cause problems with the check once any files are updated outside the wrapper. Also we cannot add `flake.lock` to `.gitignore` since nix will sometimes complain. |
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,12 @@ | ||
{ | ||
inputs = { | ||
nixvim.url = "path:../../.."; | ||
simple = { | ||
url = "path:../../simple"; | ||
inputs.nixvim.follows = "nixvim"; | ||
inputs.flake-utils.follows = "nixvim/flake-utils"; | ||
}; | ||
}; | ||
|
||
outputs = inputs: inputs.simple; | ||
} |
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
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