{ description = "Flake for the servicepoint library."; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; }; outputs = inputs@{ self, nixpkgs, }: let lib = nixpkgs.lib; supported-systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; forAllSystems = f: lib.genAttrs supported-systems ( system: f rec { pkgs = nixpkgs.legacyPackages.${system}; inherit system; } ); in { devShells = forAllSystems ( { pkgs, system }: let toolchain = pkgs.symlinkJoin { name = "rust-toolchain"; paths = with pkgs; [ rustc cargo rustPlatform.rustcSrc rustPlatform.rustLibSrc rustfmt clippy cargo-expand cargo-tarpaulin ]; }; in { default = pkgs.mkShell rec { packages = with pkgs; [ toolchain gcc gdb gnumake pkg-config xe xz libgcc libunwind pkgsStatic.gcc pkgsStatic.libgcc pkgsStatic.musl ]; RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}"; RUST_BACKTRACE = 1; RUST_LOG = "all"; }; } ); formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style); }; }