fix: add all dependencies to shell.nix
This commit is contained in:
parent
30d9bdf499
commit
f66709db26
10
shell.nix
10
shell.nix
|
@ -2,9 +2,13 @@
|
||||||
|
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
rust-analyzer
|
|
||||||
rustfmt
|
|
||||||
clippy
|
|
||||||
cargo
|
cargo
|
||||||
|
clippy
|
||||||
|
rustfmt
|
||||||
|
rust-analyzer
|
||||||
|
pagefind
|
||||||
|
esbuild
|
||||||
|
nodePackages.pnpm
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,7 +323,7 @@ fn build() {
|
||||||
let data = std::fs::read_to_string("content/index.md").unwrap();
|
let data = std::fs::read_to_string("content/index.md").unwrap();
|
||||||
let (_, html, _) = text::md::parse(&data, None);
|
let (_, html, _) = text::md::parse(&data, None);
|
||||||
html::home(Raw(html)).render().to_owned().into()
|
html::home(Raw(html)).render().to_owned().into()
|
||||||
})).into(),
|
})),
|
||||||
meta: gen::FileItem {
|
meta: gen::FileItem {
|
||||||
kind: gen::FileItemKind::Index,
|
kind: gen::FileItemKind::Index,
|
||||||
path: "content/index.md".into()
|
path: "content/index.md".into()
|
||||||
|
@ -331,7 +331,7 @@ fn build() {
|
||||||
}.into(),
|
}.into(),
|
||||||
path: "index.html".into(),
|
path: "index.html".into(),
|
||||||
link: None,
|
link: None,
|
||||||
}.into(),
|
},
|
||||||
Output {
|
Output {
|
||||||
kind: Dynamic::new(|sack| to_list(sack.get_links("posts/**/*.html"))).into(),
|
kind: Dynamic::new(|sack| to_list(sack.get_links("posts/**/*.html"))).into(),
|
||||||
path: "posts/index.html".into(),
|
path: "posts/index.html".into(),
|
||||||
|
@ -377,7 +377,6 @@ fn build() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
println!("{}", String::from_utf8(res.stderr).unwrap());
|
println!("{}", String::from_utf8(res.stderr).unwrap());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue