tangled
alpha
login
or
join now
fuwn.net
/
mayu
1
fork
atom
⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam
mayu.due.moe
hit-counter
svg
moe
1
fork
atom
overview
issues
pulls
pipelines
build(nix): nix environment
fuwn.net
2 years ago
0448cbc0
365ea889
verified
This commit was signed with the committer's
known signature
.
fuwn.net
SSH Key Fingerprint:
SHA256:VPdFPyPbd6JkoMyWUdZ/kkTcIAt3sxjXD2XSAZ7FYC4=
+136
3 changed files
expand all
collapse all
unified
split
.gitignore
flake.lock
flake.nix
+3
.gitignore
···
10
10
# SQLite
11
11
*.sqlite3
12
12
*.db
13
13
+
14
14
+
# Nix
15
15
+
result
+98
flake.lock
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"flake-utils": {
4
4
+
"inputs": {
5
5
+
"systems": "systems"
6
6
+
},
7
7
+
"locked": {
8
8
+
"lastModified": 1710146030,
9
9
+
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
10
10
+
"owner": "numtide",
11
11
+
"repo": "flake-utils",
12
12
+
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
13
13
+
"type": "github"
14
14
+
},
15
15
+
"original": {
16
16
+
"owner": "numtide",
17
17
+
"repo": "flake-utils",
18
18
+
"type": "github"
19
19
+
}
20
20
+
},
21
21
+
"gitignore": {
22
22
+
"inputs": {
23
23
+
"nixpkgs": [
24
24
+
"nixpkgs"
25
25
+
]
26
26
+
},
27
27
+
"locked": {
28
28
+
"lastModified": 1709087332,
29
29
+
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
30
30
+
"owner": "hercules-ci",
31
31
+
"repo": "gitignore.nix",
32
32
+
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
33
33
+
"type": "github"
34
34
+
},
35
35
+
"original": {
36
36
+
"owner": "hercules-ci",
37
37
+
"repo": "gitignore.nix",
38
38
+
"type": "github"
39
39
+
}
40
40
+
},
41
41
+
"nix-gleam": {
42
42
+
"locked": {
43
43
+
"lastModified": 1717670865,
44
44
+
"narHash": "sha256-+dAPiKAwCzlKWtx3aIHXfR6jydh1JyangewqZKJx500=",
45
45
+
"owner": "arnarg",
46
46
+
"repo": "nix-gleam",
47
47
+
"rev": "c69abe0e57a01991654d3de63dcd93a8b91b98ff",
48
48
+
"type": "github"
49
49
+
},
50
50
+
"original": {
51
51
+
"owner": "arnarg",
52
52
+
"repo": "nix-gleam",
53
53
+
"type": "github"
54
54
+
}
55
55
+
},
56
56
+
"nixpkgs": {
57
57
+
"locked": {
58
58
+
"lastModified": 1718318537,
59
59
+
"narHash": "sha256-4Zu0RYRcAY/VWuu6awwq4opuiD//ahpc2aFHg2CWqFY=",
60
60
+
"owner": "NixOS",
61
61
+
"repo": "nixpkgs",
62
62
+
"rev": "e9ee548d90ff586a6471b4ae80ae9cfcbceb3420",
63
63
+
"type": "github"
64
64
+
},
65
65
+
"original": {
66
66
+
"owner": "NixOS",
67
67
+
"ref": "nixos-unstable",
68
68
+
"repo": "nixpkgs",
69
69
+
"type": "github"
70
70
+
}
71
71
+
},
72
72
+
"root": {
73
73
+
"inputs": {
74
74
+
"flake-utils": "flake-utils",
75
75
+
"gitignore": "gitignore",
76
76
+
"nix-gleam": "nix-gleam",
77
77
+
"nixpkgs": "nixpkgs"
78
78
+
}
79
79
+
},
80
80
+
"systems": {
81
81
+
"locked": {
82
82
+
"lastModified": 1681028828,
83
83
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
84
84
+
"owner": "nix-systems",
85
85
+
"repo": "default",
86
86
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
87
87
+
"type": "github"
88
88
+
},
89
89
+
"original": {
90
90
+
"owner": "nix-systems",
91
91
+
"repo": "default",
92
92
+
"type": "github"
93
93
+
}
94
94
+
}
95
95
+
},
96
96
+
"root": "root",
97
97
+
"version": 7
98
98
+
}
+35
flake.nix
···
1
1
+
{
2
2
+
description = "Moe-Counter Compatible Website Hit Counter";
3
3
+
inputs = {
4
4
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5
5
+
flake-utils.url = "github:numtide/flake-utils";
6
6
+
nix-gleam.url = "github:arnarg/nix-gleam";
7
7
+
gitignore = {
8
8
+
url = "github:hercules-ci/gitignore.nix";
9
9
+
inputs.nixpkgs.follows = "nixpkgs";
10
10
+
};
11
11
+
};
12
12
+
outputs = { self, nixpkgs, flake-utils, nix-gleam, gitignore, ... }:
13
13
+
flake-utils.lib.eachDefaultSystem (system:
14
14
+
let
15
15
+
pkgs = import nixpkgs {
16
16
+
inherit system;
17
17
+
overlays = [
18
18
+
nix-gleam.overlays.default
19
19
+
];
20
20
+
};
21
21
+
inherit (gitignore.lib) gitignoreSource;
22
22
+
in
23
23
+
{
24
24
+
packages.default = pkgs.buildGleamApplication {
25
25
+
src = gitignoreSource ./.;
26
26
+
rebar3Package = pkgs.rebar3WithPlugins {
27
27
+
plugins = with pkgs.beamPackages; [ pc ];
28
28
+
};
29
29
+
};
30
30
+
devShell = pkgs.mkShell {
31
31
+
buildInputs = [ pkgs.gleam pkgs.rebar3 ];
32
32
+
};
33
33
+
}
34
34
+
);
35
35
+
}