diff --git a/flake.lock b/flake.lock index aade7c1213530f334dfa862a32ae7ba1feb100ca..e5a883e59bf51062622438365a6ed7214d1c461b 100644 --- a/flake.lock +++ b/flake.lock @@ -18,122 +18,51 @@ "repo": "flake-utils", "type": "github" } }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, - "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_3": { - "locked": { - "lastModified": 1667395993, - "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "gitignore": { - "inputs": { - "nixpkgs": [ - "templ", - "nixpkgs" - ] - }, + "nixpkgs": { "locked": { - "lastModified": 1694102001, - "narHash": "sha256-vky6VPK1n1od6vXbqzOXnekrQpTL4hbPAwUhT5J9c9E=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "9e21c80adf67ebcb077d75bd5e7d724d21eeafd6", + "lastModified": 1705718568, + "narHash": "sha256-j+SHSurRoZAHMeeberZN7bI5NPNbWrI1Rl2n6V8RNWo=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4e0e806522a821d1a7f2d0709e94b6cdddf89ecc", "type": "github" }, "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", + "owner": "nixos", + "repo": "nixpkgs", "type": "github" } }, - "gomod2nix": { + "nur": { "inputs": { - "flake-utils": "flake-utils_2", "nixpkgs": [ - "templ", "nixpkgs" ] }, "locked": { - "lastModified": 1705314449, - "narHash": "sha256-yfQQ67dLejP0FLK76LKHbkzcQqNIrux6MFe32MMFGNQ=", - "owner": "nix-community", - "repo": "gomod2nix", - "rev": "30e3c3a9ec4ac8453282ca7f67fca9e1da12c3e6", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "gomod2nix", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1705718568, - "narHash": "sha256-j+SHSurRoZAHMeeberZN7bI5NPNbWrI1Rl2n6V8RNWo=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "4e0e806522a821d1a7f2d0709e94b6cdddf89ecc", - "type": "github" + "lastModified": 1700580516, + "narHash": "sha256-h72i6afGKreU+DjpZ6+qersarYYp4YjX+DBQ+MQkOG4=", + "ref": "refs/heads/main", + "rev": "a68a81cbc743e84aaee331ae7e58699398dd732d", + "revCount": 167, + "type": "git", + "url": "https://git.jojodev.com/jolheiser/nur" }, "original": { - "owner": "nixos", - "repo": "nixpkgs", - "type": "github" + "type": "git", + "url": "https://git.jojodev.com/jolheiser/nur" } }, "root": { "inputs": { "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", + "nur": "nur", "tailwind-ctp": "tailwind-ctp", - "tailwind-ctp-lsp": "tailwind-ctp-lsp", - "templ": "templ" + "tailwind-ctp-lsp": "tailwind-ctp-lsp" } }, "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_2": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -186,51 +115,6 @@ }, "original": { "type": "git", "url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense" - } - }, - "templ": { - "inputs": { - "gitignore": "gitignore", - "gomod2nix": "gomod2nix", - "nixpkgs": [ - "nixpkgs" - ], - "xc": "xc" - }, - "locked": { - "lastModified": 1709917943, - "narHash": "sha256-zDQxUFSmG/VX+xtK+nZ3ObRMVcMjjx+EUAxHLNcHHF8=", - "owner": "a-h", - "repo": "templ", - "rev": "df2a32403bb4a8e4745ac10ddc8b3e77386d8045", - "type": "github" - }, - "original": { - "owner": "a-h", - "repo": "templ", - "type": "github" - } - }, - "xc": { - "inputs": { - "flake-utils": "flake-utils_3", - "nixpkgs": [ - "templ", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1703164129, - "narHash": "sha256-kCcCqqwvjN07H8FPG4tXsRVRcMqT8dUNt9pwW1kKAe8=", - "owner": "joerdav", - "repo": "xc", - "rev": "0655cccfcf036556aeaddfb8f45dc7e8dd1b3680", - "type": "github" - }, - "original": { - "owner": "joerdav", - "repo": "xc", - "type": "github" } } }, diff --git a/flake.nix b/flake.nix index 1d8cd452391098e16c768011c5d6ea5511956ec5..2f1afb8299ec8b0e052dc526716520f83270c4f0 100644 --- a/flake.nix +++ b/flake.nix @@ -2,8 +2,8 @@ { inputs = { nixpkgs.url = "github:nixos/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - templ = { - url = "github:a-h/templ"; + nur = { + url = "git+https://git.jojodev.com/jolheiser/nur"; inputs.nixpkgs.follows = "nixpkgs"; }; tailwind-ctp = { @@ -20,23 +20,23 @@ outputs = { self, flake-utils, nixpkgs, - templ, + nur, tailwind-ctp, tailwind-ctp-lsp, } @ inputs: flake-utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system}; + nur = inputs.nur.packages.${system}; tailwind-ctp = inputs.tailwind-ctp.packages.${system}.default; tailwind-ctp-lsp = inputs.tailwind-ctp-lsp.packages.${system}.default; - templ = inputs.templ.packages.${system}.templ; in { packages.default = pkgs.buildGoModule { pname = "jolheiser.com"; version = "site"; src = ./.; - vendorHash = nixpkgs.lib.fileContents ./go.mod.sri; - nativeBuildInputs = [templ tailwind-ctp]; + vendorHash = "sha256-i/A6k0xaIPuWCfK6pm7TczkRaIWXzAjOGTXLIeDbxRw="; + nativeBuildInputs = [nur.templ tailwind-ctp]; excludedPackages = "."; postBuild = '' go generate @@ -46,7 +46,7 @@ }; devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ go - templ + nur.templ tailwind-ctp tailwind-ctp-lsp vscode-langservers-extracted diff --git a/go.mod b/go.mod index 2e79f8a756bdbc0654e3fc548a494db6bc22bd4e..885c769471fe959fe5390978a65f77e0f45431a9 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module jolheiser.com -go 1.21 +go 1.20 require ( git.jojodev.com/jolheiser/simpleicons v0.0.3 - github.com/a-h/templ v0.2.598 + github.com/a-h/templ v0.2.334 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.mod.sri b/go.mod.sri deleted file mode 100644 index 043922876f4f1e2c53e39d742ccc550b46b55de5..0000000000000000000000000000000000000000 --- a/go.mod.sri +++ /dev/null @@ -1 +0,0 @@ -sha256-SYSzOO6M83uojEalPUe58FqkGYhUQASum9cZs7Kcng4= \ No newline at end of file diff --git a/go.sum b/go.sum index 82d9b07aef97ca72e6bcef23b7f8f1c64d3550ca..dcf20c44bf9c82294b97e50d9fe682d9366f6cd6 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,8 @@ git.jojodev.com/jolheiser/simpleicons v0.0.3 h1:R/UEcl6L6wAScHKu/oYyB0jY62inYes56aM91YlTfqE= git.jojodev.com/jolheiser/simpleicons v0.0.3/go.mod h1:NIhFsYI7rALmUX37teVRzf8BJAv1XtZC1OGeVjmB/No= -github.com/a-h/templ v0.2.598 h1:6jMIHv6wQZvdPxTuv87erW4RqN/FPU0wk7ZHN5wVuuo= -github.com/a-h/templ v0.2.598/go.mod h1:SA7mtYwVEajbIXFRh3vKdYm/4FYyLQAtPH1+KxzGPA8= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/a-h/templ v0.2.334 h1:/mKupkgHGeSSeC0KiGRvmUoRGQJuku9VGVhRP1CeWgY= +github.com/a-h/templ v0.2.334/go.mod h1:6Lfhsl3Z4/vXl7jjEjkJRCqoWDGjDnuKgzjYMDSddas= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/jolheiser.com b/jolheiser.com deleted file mode 100755 index 36320dfc1c8cbf1b92b71a4a4745715eea1a5836..0000000000000000000000000000000000000000 Binary files a/jolheiser.com and /dev/null differ diff --git a/site_templ.go b/site_templ.go index 70fe83693ec77a3e816eb7e4a19a2c12cf6f71d6..d93daa2748b2936dbb43f3b6b5198d9f88256f66 100644 --- a/site_templ.go +++ b/site_templ.go @@ -1,6 +1,5 @@ -// Code generated by templ - DO NOT EDIT. +// Code generated by templ@(devel) DO NOT EDIT. -// templ: version: v0.2.608 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,26 +10,35 @@ import "io" import "bytes" func head() templ.Component { - return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { - templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) - if !templ_7745c5c3_IsBuffer { - templ_7745c5c3_Buffer = templ.GetBuffer() - defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) { + templBuffer, templIsBuffer := w.(*bytes.Buffer) + if !templIsBuffer { + templBuffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templBuffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent + var_1 := templ.GetChildren(ctx) + if var_1 == nil { + var_1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err + _, err = templBuffer.WriteString("
") + if err != nil { + return err } - var templ_7745c5c3_Var3 string - templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(`@`) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `site.templ`, Line: 22, Col: 58} + var var_4 string = `@` + _, err = templBuffer.WriteString(templ.EscapeString(var_4)) + if err != nil { + return err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err + var_5 := `jolheiser` + _, err = templBuffer.WriteString(var_5) + if err != nil { + return err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("jolheiser