{ description = "Nix flake for PDS migrate. A CLI tool for migrating between PDSs in the atmosphere (atproto network)"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; }; outputs = { self, nixpkgs, ...}: let forAllSystems = function: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( system: (function system nixpkgs.legacyPackages.${system}) ); in { packages = forAllSystems (system: pkgs: { default = pkgs.callPackage ./nix/package.nix {}; }); devShells = forAllSystems (system: pkgs: { default = self.packages.${system}.default.overrideAttrs (prev: { nativeBuildInputs = with pkgs; [ # Additional rust tooling clippy rustfmt rust-analyzer ] ++ (prev.nativeBuildInputs or [ ]); RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }); }); }; }