fix: add all dependencies to shell.nix

This commit is contained in:
Maciej Jur 2024-06-13 23:35:56 +02:00
parent 30d9bdf499
commit f66709db26
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
2 changed files with 12 additions and 9 deletions

View file

@ -1,10 +1,14 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
rust-analyzer
rustfmt
clippy
cargo
];
buildInputs = with pkgs; [
cargo
clippy
rustfmt
rust-analyzer
pagefind
esbuild
nodePackages.pnpm
python3
];
}

View file

@ -323,7 +323,7 @@ fn build() {
let data = std::fs::read_to_string("content/index.md").unwrap();
let (_, html, _) = text::md::parse(&data, None);
html::home(Raw(html)).render().to_owned().into()
})).into(),
})),
meta: gen::FileItem {
kind: gen::FileItemKind::Index,
path: "content/index.md".into()
@ -331,7 +331,7 @@ fn build() {
}.into(),
path: "index.html".into(),
link: None,
}.into(),
},
Output {
kind: Dynamic::new(|sack| to_list(sack.get_links("posts/**/*.html"))).into(),
path: "posts/index.html".into(),
@ -377,7 +377,6 @@ fn build() {
.unwrap();
println!("{}", String::from_utf8(res.stderr).unwrap());
}
fn main() {