Skip to content

feat(nix): Add apps and formatter to flake#176

Merged
thejoeejoee merged 4 commits into
seznam:mainfrom
jiriks74:add-nix-flake-app
May 22, 2026
Merged

feat(nix): Add apps and formatter to flake#176
thejoeejoee merged 4 commits into
seznam:mainfrom
jiriks74:add-nix-flake-app

Conversation

@jiriks74

Copy link
Copy Markdown
Contributor

Also added a format step to CI on vendorHash update and formated the flake.

Copilot AI review requested due to automatic review settings May 21, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the repository’s Nix flake UX by exposing a flake app for nix run, adding a flake formatter for nix fmt, and wiring formatting into the automated vendorHash update workflow.

Changes:

  • Add formatter (Alejandra) and apps outputs to flake.nix, and reformat the flake.
  • Update flake.lock to a newer nixpkgs revision.
  • Update the nix-vendor-hash GitHub Actions workflow to run nix fmt when flake.nix changes.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
flake.nix Adds formatter and apps outputs and reformats the flake structure.
flake.lock Bumps the pinned nixpkgs input revision/hash.
.github/workflows/nix-vendor-hash.yml Runs nix fmt before nix flake check/nix build when vendorHash updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flake.nix
Comment thread flake.nix
@jiriks74 jiriks74 force-pushed the add-nix-flake-app branch from ee143fc to 2f49c36 Compare May 21, 2026 16:06
jiriks74 added 4 commits May 21, 2026 18:10
This allows users to run `jailoc` (without installing it) using
`nix flake run github:seznam/jailoc` or
`nix run github:seznam/jailoc#<commit-or-tag>`.

It can also be used for local development with `nix run` or `nix run .#jailoc`
when in the repository.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@thejoeejoee thejoeejoee merged commit 66878f8 into seznam:main May 22, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants