An Elixir toolkit for the AT Protocol.
hexdocs.pm/atex
elixir
bluesky
atproto
decentralization
1{
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
4 treefmt-nix.url = "github:numtide/treefmt-nix";
5 };
6
7 outputs = {
8 self,
9 nixpkgs,
10 treefmt-nix,
11 ...
12 }: let
13 forSystems = fn:
14 nixpkgs.lib.genAttrs [
15 "aarch64-linux"
16 "aarch64-darwin"
17 "x86_64-darwin"
18 "x86_64-linux"
19 ] (system: fn nixpkgs.legacyPackages.${system});
20 defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;});
21 treefmtEval = forSystems (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
22 in {
23 devShells = defaultForSystems (pkgs:
24 pkgs.mkShell {
25 nativeBuildInputs = with pkgs; [elixir erlang];
26 });
27
28 formatter = forSystems (pkgs: treefmtEval.${pkgs.stdenv.hostPlatform.system}.config.build.wrapper);
29 };
30}