{ description = "Create highly reproducible python environments"; inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; mach-nix-default = import ./default.nix {inherit pkgs;}; in rec { devShell = import ./shell.nix { inherit pkgs; }; packages = flake-utils.lib.flattenTree { mach-nix = mach-nix-default.mach-nix; "with" = mach-nix-default.pythonWith; pythonWith = mach-nix-default.pythonWith; shellWith = mach-nix-default.shellWith; dockerImageWith = mach-nix-default.dockerImageWith; }; defaultPackage = packages."${system}".mach-nix.mach-nix; apps.mach-nix = flake-utils.lib.mkApp { drv = packages.mach-nix.mach-nix; }; defaultApp = { type = "app"; program = "${defaultPackage."${system}"}/bin/mach-nix"; }; } ); }