From ae5939c4746029c4d67b84458e9b6854b2389469 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 19 Feb 2025 08:18:34 +0000 Subject: [PATCH] update appview builds --- appview/pages/templates/repo/commit.html | 2 +- flake.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index 21d89dd..06a3a54 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -102,7 +102,7 @@ {{ else }}
             {{- range .TextFragments -}}
-              
{{ .Header }}
+
{{ nl2br .Header }}
{{- range .Lines -}} {{- if eq .Op.String "+" -}}
{{ .String }}
diff --git a/flake.nix b/flake.nix index 85c90e5..5eca922 100644 --- a/flake.nix +++ b/flake.nix @@ -57,13 +57,16 @@ pname = "appview"; version = "0.1.0"; src = gitignoreSource ./.; - preBuild = '' + postUnpack = '' + pushd source cp -f ${htmx-src} appview/pages/static/htmx.min.js cp -f ${lucide-src} appview/pages/static/lucide.min.js ${pkgs.tailwindcss}/bin/tailwindcss -i input.css -o appview/pages/static/tw.css - ''; + popd + ''; + doCheck = false; subPackages = [ "cmd/appview" ]; - vendorHash = "sha256-t7lWrCyFWCI7zjUcC6XNWzCrUPSCFnFu9gTmRTsYrz0="; + vendorHash = "sha256-u9LwvapAwyVOIOAag0IRrk+ot6B0PaqyEnt0EeJciGQ="; env.CGO_ENABLED = 1; stdenv = pkgsStatic.stdenv; }; -- 2.54.0