Repository navigation
feat(flake): make nix run github:mincomk/bootit work - #13
Merged
Merged
Conversation
The committed flake never evaluated: it pointed at ./rust-toolchain.toml,
which the repo does not have, and used `lib` / `stdenv` without binding
them. It was a crane template left half-filled.
Replace crane, rust-overlay and flake-utils with a single nixpkgs input
and a plain rustPlatform.buildRustPackage, so the flake evaluates from a
cold checkout and both bins (`bootit` and `it`) land in $out/bin:
nix run github:mincomk/bootit -- scan
nix profile install github:mincomk/bootit
Also add a CI job that evaluates, builds and runs the flake, and document
the Nix install path in the README.
Co-authored-by: Attacca <attacca@walruslab.org>
mincomk
force-pushed
the
feat/nix-flake
branch
from
October 22, 2026 13:58
4384e5f to
4e7e128
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
nix run github:mincomk/bootitdid not work because the committed flake never evaluated:rust-bin.fromRustupToolchainFile ./rust-toolchain.toml— the repo has norust-toolchain.toml.lib.optionals/stdenv.isDarwinused withoutlib/stdenvin scope.It was a crane template that was never filled in (description still said "A very cool CLI tool").
What this does
nixpkgsinput withrustPlatform.buildRustPackageandcargoLock.lockFile(no hash to maintain), so it evaluates from a cold checkout.crane,rust-overlayandflake-utilsare gone, andflake.lockis regenerated accordingly.bootitandit) are installed to$out/binbybuildRustPackage.apps.defaultis declared, sonix runworks. Version is read fromCargo.tomlrather than hardcoded.flakeCI job:nix flake check --no-build,nix build .#default,nix run .#default -- --version.Verifying
CI's
flakejob is the check for this PR (the machine this was written on cannot run a full nixpkgs evaluation).