tangled vouch map with historical data
7
fork

Configure Feed

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

feat: add flake

+98
+1
.gitignore
··· 7 7 tmp/ 8 8 node_modules/ 9 9 web-dist/ 10 + vendor/
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1777268161, 6 + "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", 7 + "owner": "nixos", 8 + "repo": "nixpkgs", 9 + "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "nixos", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+70
flake.nix
··· 1 + { 2 + description = "the tangled web of trust — visualize the tangled.social trust graph"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 6 + }; 7 + 8 + outputs = 9 + { 10 + self, 11 + nixpkgs, 12 + }: 13 + let 14 + systems = [ 15 + "x86_64-linux" 16 + "aarch64-linux" 17 + "aarch64-darwin" 18 + "x86_64-darwin" 19 + ]; 20 + forAllSystems = nixpkgs.lib.genAttrs systems; 21 + in 22 + { 23 + packages = forAllSystems (system: { 24 + default = 25 + let 26 + pkgs = nixpkgs.legacyPackages.${system}; 27 + in 28 + pkgs.buildGoModule { 29 + pname = "tangle-of-trust"; 30 + version = "0.1.0"; 31 + 32 + src = ./.; 33 + 34 + vendorHash = "sha256-qU8hOL2z/5Fjjczf374Enumxc0Shfxlit35AJNKIEV4="; 35 + 36 + meta = with pkgs.lib; { 37 + description = "Visualize the tangled.social trust graph as an interactive force-directed graph"; 38 + homepage = "https://tangle.dunkirk.sh"; 39 + license = licenses.mit; 40 + platforms = platforms.unix; 41 + }; 42 + }; 43 + }); 44 + 45 + apps = forAllSystems (system: { 46 + default = { 47 + type = "app"; 48 + program = "${self.packages.${system}.default}/bin/tangle-ingest"; 49 + }; 50 + }); 51 + 52 + devShells = forAllSystems (system: { 53 + default = 54 + let 55 + pkgs = nixpkgs.legacyPackages.${system}; 56 + in 57 + pkgs.mkShell { 58 + packages = with pkgs; [ 59 + go 60 + nodejs 61 + sqlite 62 + ]; 63 + 64 + shellHook = '' 65 + export DATABASE_URL="tangle.db" 66 + ''; 67 + }; 68 + }); 69 + }; 70 + }