adcd280bbd
Set up project scaffolding with free-threaded Python 3.14, uv for package management, and Nix flakes for dev tooling (treefmt-nix with nixfmt/ruff, pyright strict mode, direnv integration). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
description = "auto-reverse — automated reverse engineering CLI";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
programs = {
|
|
nixfmt.enable = true;
|
|
ruff-check.enable = true;
|
|
ruff-format.enable = true;
|
|
};
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
uv
|
|
ruff
|
|
pyright
|
|
];
|
|
|
|
shellHook = ''
|
|
export UV_PYTHON_PREFERENCE=only-system
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|