{ inputs = { fenix.url = "github:nix-community/fenix"; fenix.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, flake-utils, fenix }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; overlays = [ fenix.overlays.default ]; }; toolchain = pkgs.fenix.default; flakePkgs = { asciinema = pkgs.callPackage ./. { inherit toolchain; }; }; in rec { packages = flake-utils.lib.flattenTree flakePkgs; defaultPackage = packages.asciinema; devShell = pkgs.mkShell { inputsFrom = with packages; [ asciinema ]; packages = (with pkgs; [ cargo-watch cargo-deny cargo-edit sqlx-cli sqlite ]) ++ (with toolchain; [ cargo rustc ]); }; }); }