this repo has no description
1{ 2 description = "atproto github"; 3 4 inputs = { 5 nixpkgs.url = "github:nixos/nixpkgs"; 6 7 gitignore = { 8 url = "github:hercules-ci/gitignore.nix"; 9 inputs.nixpkgs.follows = "nixpkgs"; 10 }; 11 12 rust-overlay = { 13 url = "github:oxalica/rust-overlay"; 14 inputs.nixpkgs.follows = "nixpkgs"; 15 }; 16 }; 17 18 outputs = 19 { self 20 , nixpkgs 21 , gitignore 22 , rust-overlay 23 , 24 }: 25 let 26 supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; 27 forAllSystems = nixpkgs.lib.genAttrs supportedSystems; 28 nixpkgsFor = forAllSystems (system: 29 import nixpkgs { 30 inherit system; 31 overlays = [ (import rust-overlay) ]; 32 }); 33 in 34 { 35 defaultPackage = forAllSystems (system: self.packages.${system}.legit); 36 formatter = forAllSystems (system: nixpkgsFor."${system}".alejandra); 37 devShells = forAllSystems (system: 38 let 39 pkgs = nixpkgsFor.${system}; 40 rust-bin = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; 41 in 42 { 43 default = pkgs.mkShell { 44 nativeBuildInputs = [ 45 pkgs.go 46 pkgs.air 47 pkgs.templ 48 49 pkgs.httpie 50 pkgs.bacon 51 rust-bin 52 pkgs.pkg-config 53 pkgs.openssl 54 ]; 55 RUST_LOG = "info"; 56 RUST_BACKTRACE = 1; 57 }; 58 }); 59 }; 60}