Nix flakes on the AT protocol
3

Configure Feed

Select the types of activity you want to include in your feed.

chore: add flake

+68
+25
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1784796856, 6 + "narHash": "sha256-wWFrV5/Qbm+lyt5x20E/bSbfJiGKMo4RCxZV8cl/WZI=", 7 + "rev": "e2587caef70cea85dd97d7daab492899902dbf5d", 8 + "revCount": 1040357, 9 + "type": "tarball", 10 + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.1040357%2Brev-e2587caef70cea85dd97d7daab492899902dbf5d/019f922f-0a2e-7171-b290-1559042ab482/source.tar.gz" 11 + }, 12 + "original": { 13 + "type": "tarball", 14 + "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1" 15 + } 16 + }, 17 + "root": { 18 + "inputs": { 19 + "nixpkgs": "nixpkgs" 20 + } 21 + } 22 + }, 23 + "root": "root", 24 + "version": 7 25 + }
+43
flake.nix
··· 1 + { 2 + description = "Declarative environment for Nix on ATproto project"; 3 + 4 + inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs 5 + 6 + outputs = 7 + { self, ... }@inputs: 8 + 9 + let 10 + supportedSystems = [ 11 + "x86_64-linux" # 64-bit Intel/AMD Linux 12 + "aarch64-linux" # 64-bit ARM Linux 13 + "aarch64-darwin" # 64-bit ARM macOS 14 + ]; 15 + 16 + forEachSupportedSystem = 17 + f: 18 + inputs.nixpkgs.lib.genAttrs supportedSystems ( 19 + system: 20 + f { 21 + inherit system; 22 + pkgs = import inputs.nixpkgs { inherit system; }; 23 + } 24 + ); 25 + in 26 + { 27 + devShells = forEachSupportedSystem ( 28 + { pkgs, system }: { 29 + default = pkgs.mkShellNoCC { 30 + packages = with pkgs; [ 31 + atproto-goat 32 + ]; 33 + 34 + env = { }; 35 + 36 + shellHook = ""; 37 + }; 38 + } 39 + ); 40 + 41 + formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt); 42 + }; 43 + }