forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 2
Remove flake-parts dependency #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lucperkins
wants to merge
5
commits into
main
Choose a base branch
from
remove-flake-parts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+98
−155
Open
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
746d5c8
Remove flake-parts dependency
lucperkins 7a5ed1c
Fix evaluation error
lucperkins ac5664e
Fix one more evaluation issue regarding non-existent attribute
lucperkins c6e8f5b
Simplify attr set passing via file
lucperkins b7f112e
Merge remote-tracking branch 'origin/main' into remove-flake-parts
lucperkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,78 @@ | ||
| { | ||
| pkgs, | ||
| lib, | ||
| src, | ||
| }: | ||
|
|
||
| { | ||
| hooks = { | ||
| check-merge-conflicts.enable = true; | ||
| check-merge-conflicts-2 = { | ||
| enable = true; | ||
| entry = "${pkgs.writeScript "check-merge-conflicts" '' | ||
| #!${pkgs.runtimeShell} | ||
| conflicts=false | ||
| for file in "$@"; do | ||
| if grep --with-filename --line-number -E '^>>>>>>> ' -- "$file"; then | ||
| conflicts=true | ||
| fi | ||
| done | ||
| if $conflicts; then | ||
| echo "ERROR: found merge/patch conflicts in files" | ||
| exit 1 | ||
| fi | ||
| ''}"; | ||
| }; | ||
| meson-format = | ||
| let | ||
| meson = pkgs.meson.overrideAttrs { | ||
| doCheck = false; | ||
| doInstallCheck = false; | ||
| patches = [ | ||
| (pkgs.fetchpatch { | ||
| url = "https://github.com/mesonbuild/meson/commit/38d29b4dd19698d5cad7b599add2a69b243fd88a.patch"; | ||
| hash = "sha256-PgPBvGtCISKn1qQQhzBW5XfknUe91i5XGGBcaUK4yeE="; | ||
| }) | ||
| ]; | ||
| }; | ||
| in | ||
| { | ||
| enable = true; | ||
| files = "(meson.build|meson.options)$"; | ||
| entry = "${pkgs.writeScript "format-meson" '' | ||
| #!${pkgs.runtimeShell} | ||
| for file in "$@"; do | ||
| ${lib.getExe meson} format -ic ${./meson.format} "$file" | ||
| done | ||
| ''}"; | ||
| }; | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| nixfmt-rfc-style = { | ||
| enable = true; | ||
| excludes = [ | ||
| ''^tests/functional/lang/parse-.*\.nix$'' | ||
| ''^tests/functional/lang/eval-okay-curpos\.nix$'' | ||
| ''^tests/functional/lang/.*comment.*\.nix$'' | ||
| ''^tests/functional/lang/.*newline.*\.nix$'' | ||
| ''^tests/functional/lang/.*eol.*\.nix$'' | ||
| ''^tests/functional/shell.shebang\.nix$'' | ||
| ''^tests/functional/lang/eval-okay-ind-string\.nix$'' | ||
| ''^tests/functional/lang/eval-okay-deprecate-cursed-or\.nix$'' | ||
| ''^tests/functional/lang/eval-okay-attrs5\.nix$'' | ||
| ''^tests/functional/lang/eval-fail-eol-2\.nix$'' | ||
| ''^tests/functional/lang/eval-fail-path-slash\.nix$'' | ||
| ''^tests/functional/lang/eval-fail-toJSON-non-utf-8\.nix$'' | ||
| ''^tests/functional/lang/eval-fail-set\.nix$'' | ||
| ]; | ||
| }; | ||
| clang-format = { | ||
| enable = true; | ||
| package = pkgs.llvmPackages_latest.clang-tools; | ||
| excludes = [ | ||
| ''^src/[^/]*-tests/data/.*$'' | ||
| ''^doc/manual/redirects\.js$'' | ||
| ''^doc/manual/theme/highlight\.js$'' | ||
| ]; | ||
| }; | ||
| shellcheck.enable = true; | ||
| }; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.