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 }: let
24 supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
25 forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
26 nixpkgsFor = forAllSystems (system:
27 import nixpkgs {
28 inherit system;
29 overlays = [(import rust-overlay)];
30 });
31 in {
32 defaultPackage = forAllSystems (system: self.packages.${system}.legit);
33 formatter = forAllSystems (system: nixpkgsFor."${system}".alejandra);
34 devShells = forAllSystems (system: let
35 pkgs = nixpkgsFor.${system};
36 rust-bin = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
37 in {
38 default = pkgs.mkShell {
39 nativeBuildInputs = [
40 pkgs.go
41 pkgs.air
42 pkgs.templ
43 pkgs.gopls
44
45 pkgs.httpie
46 pkgs.bacon
47 rust-bin
48 pkgs.pkg-config
49 pkgs.openssl
50 ];
51 RUST_LOG = "info";
52 RUST_BACKTRACE = 1;
53 };
54 });
55 };
56}