From 65fd4a8c23207bb35a5f3e96dd222c5bb5f65ae4 Mon Sep 17 00:00:00 2001 From: cjshearer Date: Sat, 29 Jun 2024 11:16:50 -0400 Subject: [PATCH] feat: wip --- assets/css/main.css | 2 +- exampleSite/hugo.toml | 4 ++++ flake.nix | 35 ++++++++++++++++++++++++++++++++++- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index c3286a9..ee990b5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -4,7 +4,7 @@ @layer base { body { - @apply prose prose-sm prose-neutral prose-resume font-[Roboto_Flex] dark:prose-invert; + /* @apply prose prose-sm prose-neutral prose-resume font-[Roboto_Flex] dark:prose-invert; */ @apply dark:bg-neutral-800; } diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index dfc6329..9896969 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -10,6 +10,10 @@ enable = true source = "assets/notwatching/hugo_stats.json" target = "main.css" +[[build.cacheBusters]] +source = "tailwind.config.mjs" +target = "main.css" + [markup.goldmark.renderer] unsafe = true diff --git a/flake.nix b/flake.nix index dbeb995..df97308 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,40 @@ vendorHash = "sha256-iNI/5uAYMG+bfndpD17dp1v3rGbFdHnG9oQv/grb/XY="; }); }; - tailwindcss = pkgs.tailwindcss; + tailwindcss = pkgs.stdenv.mkDerivation (finalAttrs: { + pname = "tailwindcss"; + version = "4.0.0-alpha.16"; + src = pkgs.fetchFromGitHub { + owner = "tailwindlabs"; + repo = "tailwindcss"; + rev = "c711903af5a42bb1dee5062937857995792cd202"; + hash = "sha256-+Ut5AUImjpZstS5anK/ObP6AlnPjfD9/WSYeSfSf4i4="; + }; + + pnpmDeps = pkgs.pnpm.fetchDeps { + inherit (finalAttrs) pname src; + hash = "sha256-bonSClGUtICBuvv4gV0yl5jDUcWqNYARHIZkZfsHeZk="; + }; + + nativeBuildInputs = [ + pkgs.cargo + pkgs.cacert + pkgs.nodejs_20 + pkgs.pnpm + pkgs.tree + pkgs.cargo + pkgs.turbo + pkgs.napi-rs-cli + ]; + + buildPhase = '' + cd crates/node + napi build --platform --release --no-const-enum + # pnpm run build --filter ./crates/node + ls -la + tree + ''; + }); nativeBuildInputs = [ go hugo tailwindcss ]; in {