{ description = "repo-rs"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable"; }; outputs = { self, nixpkgs }: let systems = [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; eachSystem = f: nixpkgs.lib.genAttrs systems ( system: f rec { inherit system; pkgs = nixpkgs.legacyPackages.${system}; } ); in { devShells = eachSystem ( { pkgs, ... }: { default = import ./shell.nix { inherit pkgs; }; } ); packages = eachSystem ( { pkgs, system, ... }: { repo-rs = pkgs.callPackage ./. { }; default = self.packages.${system}.repo-rs; } ); }; }