Skip to content

flake: follow flake-parts and flake-utils inputs - #1001

Merged
NotAShelf merged 1 commit into
NotAShelf:mainfrom
trueNAHO:flake-follow-flake-parts-and-flake-utils-inputs
Jul 10, 2025
Merged

NotAShelf merged 1 commit into
NotAShelf:mainfrom
trueNAHO:flake-follow-flake-parts-and-flake-utils-inputs

Conversation

@trueNAHO

@trueNAHO trueNAHO commented Jul 10, 2025 •

Copy link
Copy Markdown
Contributor
flake-parts's nixpkgs-lib input follows nvf's nixpkgs input to reduce
download size, and flake-utils's systems inputs follows nvf's systems
input to transitively leverage the pattern introduced in commit
fc8206e7a61d ("flake: utilize nix-systems for overridable flake
systems").

Sanity Checking

  • I have updated the changelog as per my changes

  • I have tested, and self-reviewed my code

    • As a non-nvf user, my testing does not go beyond running nix build .#{docs-html,docs-linkcheck,maximal,nix} with the following temporary patch to avoid compiling deno from source:
    diff --git a/modules/plugins/languages/markdown.nix b/modules/plugins/languages/markdown.nix
    index 23848835..e6337b5b 100644
    --- a/modules/plugins/languages/markdown.nix
    +++ b/modules/plugins/languages/markdown.nix
    @@ -37,10 +37,10 @@
       formats = {
         # for backwards compatibility
         denofmt = {
    -      package = pkgs.deno;
    +      package = pkgs.hello;
         };
         deno_fmt = {
    -      package = pkgs.deno;
    +      package = pkgs.hello;
         };
         prettierd = {
           package = pkgs.prettierd;
    diff --git a/modules/plugins/languages/ts.nix b/modules/plugins/languages/ts.nix
    index 6064da98..95af56b1 100644
    --- a/modules/plugins/languages/ts.nix
    +++ b/modules/plugins/languages/ts.nix
    @@ -37,7 +37,7 @@
         };
    
         denols = {
    -      package = pkgs.deno;
    +      package = pkgs.hello;
           lspConfig = ''
             vim.g.markdown_fenced_languages = { "ts=typescript" }
             lspconfig.denols.setup {
  • My changes fit guidelines found in hacking nvf

  • Style and consistency

    • I ran Alejandra to format my code (nix fmt)
    • My code conforms to the editorconfig configuration of the project
    • My changes are consistent with the rest of the codebase
  • If new changes are particularly complex:

    • My code includes comments in particularly complex areas
    • I have added a section in the manual
    • (For breaking changes) I have included a migration guide
  • Package(s) built:

    • .#nix (default package)
    • .#maximal
    • .#docs-html (manual, must build)
    • .#docs-linkcheck (optional, please build if adding links)
  • Tested on platform(s)

    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

Add a 👍 reaction to pull requests you find important.

flake-parts's nixpkgs-lib input follows nvf's nixpkgs input to reduce
download size, and flake-utils's systems inputs follows nvf's systems
input to transitively leverage the pattern introduced in commit
fc8206e ("flake: utilize nix-systems for overridable flake
systems").
@github-actions

github-actions Bot commented Jul 10, 2025 •

Copy link
Copy Markdown

🚀 Live preview deployed from 8ea010d

View it here:

Debug Information

Triggered by: NotAShelf

HEAD at: flake-follow-flake-parts-and-flake-utils-inputs

Reruns: 1059

@NotAShelf NotAShelf left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you :)

@NotAShelf
NotAShelf merged commit 8ea010d into NotAShelf:main Jul 10, 2025
@github-actions

Copy link
Copy Markdown

✅ Preview has been deleted successfully!

@trueNAHO

Copy link
Copy Markdown
Contributor Author

editorconfig-checker does not seem happy. Do you know how to resolve this?

@NotAShelf

Copy link
Copy Markdown
Owner

I've been meaning to look into that for a while, but it's not your fault. For some reason it's ignoring my config for the flake lock and npins lock. I'll investigate at a later date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants