tangled
alpha
login
or
join now
dunkirk.sh
/
herald
1
fork
atom
rss email digests over ssh because you're a cool kid
herald.dunkirk.sh
go
rss
rss-reader
ssh
charm
1
fork
atom
overview
issues
pulls
pipelines
feat: add package
dunkirk.sh
2 months ago
5e952a22
cf8e46b9
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+64
-58
2 changed files
expand all
collapse all
unified
split
flake.lock
flake.nix
-34
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": 1731533236,
9
9
-
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
10
10
-
"owner": "numtide",
11
11
-
"repo": "flake-utils",
12
12
-
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
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
3
"nixpkgs": {
22
4
"locked": {
23
5
"lastModified": 1767892417,
···
36
18
},
37
19
"root": {
38
20
"inputs": {
39
39
-
"flake-utils": "flake-utils",
40
21
"nixpkgs": "nixpkgs"
41
41
-
}
42
42
-
},
43
43
-
"systems": {
44
44
-
"locked": {
45
45
-
"lastModified": 1681028828,
46
46
-
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
47
47
-
"owner": "nix-systems",
48
48
-
"repo": "default",
49
49
-
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
50
50
-
"type": "github"
51
51
-
},
52
52
-
"original": {
53
53
-
"owner": "nix-systems",
54
54
-
"repo": "default",
55
55
-
"type": "github"
56
22
}
57
23
}
58
24
},
+64
-24
flake.nix
···
3
3
4
4
inputs = {
5
5
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
6
-
flake-utils.url = "github:numtide/flake-utils";
7
6
};
8
7
9
9
-
outputs = { self, nixpkgs, flake-utils }:
10
10
-
flake-utils.lib.eachDefaultSystem (system:
11
11
-
let
12
12
-
pkgs = nixpkgs.legacyPackages.${system};
13
13
-
in
14
14
-
{
15
15
-
devShells.default = pkgs.mkShell {
16
16
-
buildInputs = with pkgs; [
17
17
-
go_1_24
18
18
-
golangci-lint
19
19
-
gotools
20
20
-
gopls
21
21
-
delve
22
22
-
goreleaser
23
23
-
];
8
8
+
outputs =
9
9
+
{ self, nixpkgs }:
10
10
+
let
11
11
+
allSystems = [
12
12
+
"x86_64-linux" # 64-bit Intel/AMD Linux
13
13
+
"aarch64-linux" # 64-bit ARM Linux
14
14
+
"x86_64-darwin" # 64-bit Intel macOS
15
15
+
"aarch64-darwin" # 64-bit ARM macOS
16
16
+
];
17
17
+
forAllSystems =
18
18
+
f:
19
19
+
nixpkgs.lib.genAttrs allSystems (
20
20
+
system:
21
21
+
f {
22
22
+
pkgs = import nixpkgs { inherit system; };
23
23
+
}
24
24
+
);
25
25
+
in
26
26
+
{
27
27
+
packages = forAllSystems (
28
28
+
{ pkgs }:
29
29
+
{
30
30
+
default = pkgs.buildGoModule {
31
31
+
pname = "herald";
32
32
+
version = "0.1.0";
33
33
+
subPackages = [ "." ];
34
34
+
src = self;
35
35
+
vendorHash = "sha256-IE7JMJ4DehwYxrkh5YCgw7yWdybxtCCxWQO7M/u6bno=";
36
36
+
};
37
37
+
}
38
38
+
);
24
39
25
25
-
shellHook = ''
26
26
-
echo "Herald development environment"
27
27
-
echo "Go version: $(go version)"
28
28
-
echo "golangci-lint version: $(golangci-lint version)"
29
29
-
'';
30
30
-
};
31
31
-
}
32
32
-
);
40
40
+
devShells = forAllSystems (
41
41
+
{ pkgs }:
42
42
+
{
43
43
+
default = pkgs.mkShell {
44
44
+
buildInputs = with pkgs; [
45
45
+
go_1_24
46
46
+
gopls
47
47
+
gotools
48
48
+
go-tools
49
49
+
golangci-lint
50
50
+
delve
51
51
+
goreleaser
52
52
+
];
53
53
+
54
54
+
shellHook = ''
55
55
+
echo "Herald development environment"
56
56
+
echo "Go version: $(go version)"
57
57
+
echo "golangci-lint version: $(golangci-lint version)"
58
58
+
'';
59
59
+
};
60
60
+
}
61
61
+
);
62
62
+
63
63
+
apps = forAllSystems (
64
64
+
{ pkgs }:
65
65
+
{
66
66
+
default = {
67
67
+
type = "app";
68
68
+
program = "${self.packages.${pkgs.system}.default}/bin/herald";
69
69
+
};
70
70
+
}
71
71
+
);
72
72
+
};
33
73
}