-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
54 lines (52 loc) · 1.36 KB
/
Copy pathflake.nix
File metadata and controls
54 lines (52 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "Dev shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-26.05";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
htmltest
hugo
nixfmt
prettier
prettier-plugin-go-template
python314
python314Packages.mdformat
python314Packages.requests
python314Packages.ruff
python314Packages.saneyaml
python314Packages.tinycss2
python314Packages.toml
shellcheck
];
shellHook = ''
cat > .prettierrc << EOF
{
"plugins": ["${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"],
"overrides": [
{
"files": ["*.html", "*.xml"],
"options": {
"parser": "go-template"
}
}
]
}
EOF
cat > pyproject.toml << EOF
[project]
requires-python = "== 3.14"
EOF
./themes/illusion-slopes/download_assets.py >/dev/null
echo "Dev shell initialized from flake.nix"
'';
};
};
}