Skip to content

Commit 0cd63f5

Browse files
committed
feat(flake): separate devShell for docs
1 parent 05db096 commit 0cd63f5

File tree

5 files changed

+100
-7
lines changed

5 files changed

+100
-7
lines changed

docs/.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

docs/flake.lock

+64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/flake.nix

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
4+
flake-parts.url = "github:hercules-ci/flake-parts";
5+
};
6+
7+
outputs = inputs:
8+
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
9+
systems = [
10+
"aarch64-linux"
11+
"x86_64-linux"
12+
"x86_64-darwin"
13+
"aarch64-darwin"
14+
];
15+
perSystem = {
16+
system,
17+
pkgs,
18+
...
19+
}: {
20+
packages.default = pkgs.callPackage ./default.nix {};
21+
devShells.default = with pkgs; mkShell {
22+
name = "talhelper-docs-dev";
23+
packages = [
24+
python311Packages.mkdocs
25+
python311Packages.pymdown-extensions
26+
python311Packages.pygments
27+
python311Packages.mike
28+
];
29+
};
30+
};
31+
};
32+
}

flake.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
packages = [
2424
gcc
2525
go_1_21
26-
mkdocs
27-
python311Packages.pymdown-extensions
28-
python311Packages.accessible-pygments
29-
python311Packages.mike
3026
];
3127
};
3228
};

0 commit comments

Comments
 (0)