From f66709db26410c78d22665f40b4d51df06cee4da Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Thu, 13 Jun 2024 23:35:56 +0200 Subject: [PATCH] fix: add all dependencies to shell.nix --- shell.nix | 16 ++++++++++------ src/main.rs | 5 ++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/shell.nix b/shell.nix index b706844..0e2b58b 100644 --- a/shell.nix +++ b/shell.nix @@ -1,10 +1,14 @@ { pkgs ? import {} }: pkgs.mkShell { - buildInputs = with pkgs; [ - rust-analyzer - rustfmt - clippy - cargo - ]; + buildInputs = with pkgs; [ + cargo + clippy + rustfmt + rust-analyzer + pagefind + esbuild + nodePackages.pnpm + python3 + ]; } diff --git a/src/main.rs b/src/main.rs index b697c56..90c9fa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() {