Skip to content

Added sukr package to flake.nix#2

Open
uttarayan21 wants to merge 3 commits intonrdxp:masterfrom
uttarayan21:master
Open

Added sukr package to flake.nix#2
uttarayan21 wants to merge 3 commits intonrdxp:masterfrom
uttarayan21:master

Conversation

@uttarayan21
Copy link

image

sukr package wasn't added in flake.nix as mentioned in the website

Copilot AI review requested due to automatic review settings February 6, 2026 19:09
@netlify
Copy link

netlify bot commented Feb 6, 2026

Deploy Preview for sukr ready!

Name Link
🔨 Latest commit 1412502
🔍 Latest deploy log https://app.netlify.com/projects/sukr/deploys/69863d43cbd71c00095fbee6
😎 Deploy Preview https://deploy-preview-2--sukr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

This PR updates the Nix flake to actually expose a sukr build as a flake output, aligning the repository’s flake.nix with what’s referenced on the website.

Changes:

  • Refactors outputs to use helper functions (pkgsFor, toolchainFor, forAllSystems) for system-specific evaluation.
  • Adds packages.${system}.sukr (and sets packages.${system}.default = sukr) via buildRustPackage.

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

Comment on lines 59 to 65
sukr = pkgs.rustPlatform.buildRustPackage {
pname = cargoToml.package.name;
version = cargoToml.package.version;
src = ./.;
buildInputs = [toolchain];
cargoHash = "sha256-mPm8Pe4W9TyDuuXLHWqA9DzbkTyR1kkfLZ3SmEt+dUc=";
};
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

pkgs.rustPlatform.buildRustPackage will still build with the Rust toolchain from nixpkgs; adding the fenix toolchain to buildInputs doesn’t switch the compiler/cargo, and also pulls the full toolchain into the runtime closure. If the intent is to build with the pinned rust-toolchain.toml, create a rustPlatform using pkgs.makeRustPlatform { cargo = toolchain; rustc = toolchain; } (or set the appropriate nativeBuildInputs/env vars) and avoid placing the toolchain in buildInputs.

Suggested change
sukr = pkgs.rustPlatform.buildRustPackage {
pname = cargoToml.package.name;
version = cargoToml.package.version;
src = ./.;
buildInputs = [toolchain];
cargoHash = "sha256-mPm8Pe4W9TyDuuXLHWqA9DzbkTyR1kkfLZ3SmEt+dUc=";
};
sukr =
let
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage {
pname = cargoToml.package.name;
version = cargoToml.package.version;
src = ./.;
cargoHash = "sha256-mPm8Pe4W9TyDuuXLHWqA9DzbkTyR1kkfLZ3SmEt+dUc=";
};

Copilot uses AI. Check for mistakes.
Copy link
Owner

Choose a reason for hiding this comment

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

hey @uttarayan21 thanks for catching this, can you integrate fenix as copilot suggests here? That way we are using a consistent toolchain throughout? Thanks

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.

2 participants