{ description = "Conventional commits for Jujutsu"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; alejandra = { url = "github:kamadorueda/alejandra/4.0.0"; inputs.nixpkgs.follows = "nixpkgs"; }; rust-overlay = { url = "github:oxalica/rust-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; }; nixConfig = { extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" "phundrak.cachix.org-1:osJAkYO0ioTOPqaQCIXMfIRz1/+YYlVFkup3R2KSexk=" ]; extra-substituters = [ "https://nix-community.cachix.org" "https://devenv.cachix.org" "https://phundrak.cachix.org" ]; }; outputs = { nixpkgs, flake-utils, rust-overlay, alejandra, ... }: flake-utils.lib.eachDefaultSystem ( system: let overlays = [(import rust-overlay)]; pkgs = import nixpkgs {inherit system overlays;}; rustVersion = pkgs.rust-bin.stable.latest.default; packages = import ./nix/packages.nix {inherit pkgs system;}; in { inherit packages; formatter = alejandra.defaultPackage.${system}; devShell = import ./nix/shell.nix {inherit pkgs rustVersion;}; } ); }