Skip to content

add flake.nix#54

Merged
natimerry merged 2 commits intonatimerry:masterfrom
anispwyn:master
Mar 6, 2026
Merged

add flake.nix#54
natimerry merged 2 commits intonatimerry:masterfrom
anispwyn:master

Conversation

@anispwyn
Copy link
Contributor

@anispwyn anispwyn commented Mar 5, 2026

this flake allow you to do the following

  • be able to run repak-gui by simply run nix run github:natimerry/repak-rivals
  • add devShell to make development environment ready (you can enter devShell by running nix develop)
  • able to compile a program directly via nix build
  • end user will be able to install this package by importing the inputs and add inputs.repak-rivals.packages.${system}.default (assuming they add the input name as repak-rivals)

idk what to say anymore man, tbh i dont think i even need crane but its so easy and pretty well documented compared to nixpkgs so i just use it

Copilot AI review requested due to automatic review settings March 5, 2026 22:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Nix flake support so the project can be built, run, and developed via standard nix commands (including nix run, nix build, and nix develop) using Crane + Fenix toolchains.

Changes:

  • Introduces flake.nix using flakelight + crane to build the Rust project and expose an app entrypoint for repak-gui.
  • Adds a Rust dev shell with the Fenix toolchain (including rust-analyzer).
  • Adds flake.lock pinning nixpkgs/crane/fenix/flakelight inputs for reproducible builds.

Reviewed changes

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

File Description
flake.nix Defines packages/apps/devShell via flakelight; builds with Crane and wraps repak-gui for runtime libs.
flake.lock Locks dependency revisions/hashes for reproducibility.

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

You can also share your feedback on Copilot code review. Take the survey.

@natimerry natimerry merged commit 138cc0f into natimerry:master Mar 6, 2026
6 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