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