A Minecraft datapack generator written in go.

feat: init project

cosmeak.dev faabb1e1

+111
+61
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-parts": { 4 + "inputs": { 5 + "nixpkgs-lib": "nixpkgs-lib" 6 + }, 7 + "locked": { 8 + "lastModified": 1768135262, 9 + "narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=", 10 + "owner": "hercules-ci", 11 + "repo": "flake-parts", 12 + "rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "hercules-ci", 17 + "repo": "flake-parts", 18 + "type": "github" 19 + } 20 + }, 21 + "nixpkgs": { 22 + "locked": { 23 + "lastModified": 1768242861, 24 + "narHash": "sha256-F4IIxa5xDHjtrmMcayM8lHctUq1oGltfBQu2+oqDWP4=", 25 + "owner": "nixos", 26 + "repo": "nixpkgs", 27 + "rev": "1327e798cb055f96f92685df444e9a2c326ab5ed", 28 + "type": "github" 29 + }, 30 + "original": { 31 + "owner": "nixos", 32 + "ref": "nixos-25.11", 33 + "repo": "nixpkgs", 34 + "type": "github" 35 + } 36 + }, 37 + "nixpkgs-lib": { 38 + "locked": { 39 + "lastModified": 1765674936, 40 + "narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=", 41 + "owner": "nix-community", 42 + "repo": "nixpkgs.lib", 43 + "rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85", 44 + "type": "github" 45 + }, 46 + "original": { 47 + "owner": "nix-community", 48 + "repo": "nixpkgs.lib", 49 + "type": "github" 50 + } 51 + }, 52 + "root": { 53 + "inputs": { 54 + "flake-parts": "flake-parts", 55 + "nixpkgs": "nixpkgs" 56 + } 57 + } 58 + }, 59 + "root": "root", 60 + "version": 7 61 + }
+12
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; 4 + flake-parts.url = "github:hercules-ci/flake-parts"; 5 + }; 6 + 7 + outputs = inputs@{ flake-parts, ... }: 8 + flake-parts.lib.mkFlake { inherit inputs; } { 9 + imports = [ ./nix ]; 10 + systems = [ "x86_64-linux" "aarch64-darwin" ]; 11 + }; 12 + }
+3
go.mod
··· 1 + module tangled.org/cosmeak.tngl.sh/weave 2 + 3 + go 1.25.5
+24
nix/default.nix
··· 1 + # This files import all modules inside this folder and the subfolders but 2 + # ignore all files and directories starting with a `_`. 3 + { lib, ... }: 4 + let 5 + importDir = dir: 6 + let 7 + entries = builtins.readDir dir; 8 + nixFiles = lib.filterAttrs (name: type: 9 + type == "regular" && 10 + lib.hasSuffix ".nix" name && 11 + name != "default.nix" && 12 + !(lib.hasPrefix "_" name) 13 + ) entries; 14 + subdirs = lib.filterAttrs (name: type: 15 + type == "directory" && 16 + !(lib.hasPrefix "_" name) 17 + ) entries; 18 + in 19 + (map (name: dir + "/${name}") (lib.attrNames nixFiles)) 20 + ++ (lib.concatMap (name: importDir (dir + "/${name}")) (lib.attrNames subdirs)); 21 + in 22 + { 23 + imports = importDir ./.; 24 + }
+11
nix/devshells.nix
··· 1 + { 2 + perSystem = { pkgs, ... }: { 3 + devShells.default = pkgs.mkShell { 4 + packages = with pkgs; [ 5 + go 6 + gopls 7 + go-tools 8 + ]; 9 + }; 10 + }; 11 + }