···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1784796856,
6
6
+
"narHash": "sha256-wWFrV5/Qbm+lyt5x20E/bSbfJiGKMo4RCxZV8cl/WZI=",
7
7
+
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
8
8
+
"revCount": 1040357,
9
9
+
"type": "tarball",
10
10
+
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.1040357%2Brev-e2587caef70cea85dd97d7daab492899902dbf5d/019f922f-0a2e-7171-b290-1559042ab482/source.tar.gz"
11
11
+
},
12
12
+
"original": {
13
13
+
"type": "tarball",
14
14
+
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1"
15
15
+
}
16
16
+
},
17
17
+
"root": {
18
18
+
"inputs": {
19
19
+
"nixpkgs": "nixpkgs"
20
20
+
}
21
21
+
}
22
22
+
},
23
23
+
"root": "root",
24
24
+
"version": 7
25
25
+
}
···
1
1
+
{
2
2
+
description = "Declarative environment for Nix on ATproto project";
3
3
+
4
4
+
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs
5
5
+
6
6
+
outputs =
7
7
+
{ self, ... }@inputs:
8
8
+
9
9
+
let
10
10
+
supportedSystems = [
11
11
+
"x86_64-linux" # 64-bit Intel/AMD Linux
12
12
+
"aarch64-linux" # 64-bit ARM Linux
13
13
+
"aarch64-darwin" # 64-bit ARM macOS
14
14
+
];
15
15
+
16
16
+
forEachSupportedSystem =
17
17
+
f:
18
18
+
inputs.nixpkgs.lib.genAttrs supportedSystems (
19
19
+
system:
20
20
+
f {
21
21
+
inherit system;
22
22
+
pkgs = import inputs.nixpkgs { inherit system; };
23
23
+
}
24
24
+
);
25
25
+
in
26
26
+
{
27
27
+
devShells = forEachSupportedSystem (
28
28
+
{ pkgs, system }: {
29
29
+
default = pkgs.mkShellNoCC {
30
30
+
packages = with pkgs; [
31
31
+
atproto-goat
32
32
+
];
33
33
+
34
34
+
env = { };
35
35
+
36
36
+
shellHook = "";
37
37
+
};
38
38
+
}
39
39
+
);
40
40
+
41
41
+
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt);
42
42
+
};
43
43
+
}