Skip to content

Add a Nix flake - #4

Open
zardus wants to merge 1 commit into
masterfrom
nix-flake
Open

zardus wants to merge 1 commit into
masterfrom
nix-flake

Conversation

@zardus

@zardus zardus commented Oct 19, 2026

Copy link
Copy Markdown
Member

Adds flake.nix and flake.lock.

  • packages.default / apps.default: srcdump built with rustPlatform.buildRustPackage. It is wrapped so nixpkgs' uv is on PATH, so srcdump uses it instead of downloading uv. angr is still provisioned by uv on first run, as in the slim release.
  • devShells.default: Rust toolchain (cargo, rustc, rustfmt, clippy, rust-analyzer) plus uv.
  • README gets a short Nix section, and /result is gitignored.

I didn't add a variant that uses nixpkgs' angr. python3Packages.angr (9.2.193) currently fails to build on nixos-unstable because setuptools_rust is missing.

Tested on x86_64-linux:

  • nix build succeeds and the cargo tests pass in the check phase.
  • nix flake check passes.
  • With a minimal PATH, ./result/bin/srcdump --yes -f main tests/fixtures/addsample provisions angr via the bundled uv and decompiles main correctly.

--version shows just 0.1.0 under Nix, since there is no .git in the build sandbox.

🤖 Generated with Claude Code

Builds srcdump with rustPlatform and wraps it so nixpkgs' uv is on PATH,
so srcdump doesn't need to download uv itself. Also provides a dev shell
with the Rust toolchain and uv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant