From eacd9231d71a4133adf94cfa7221ebce7cc40fc3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 00:04:36 +0000 Subject: [PATCH 01/32] chore(deps): bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acbd2c4..caceb35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - run: nix build --accept-flake-config - name: Artifact pages - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pages path: result/dist From cd26f4f3d52d263fa947beb3e0296b0ea5f07582 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Tue, 31 Jan 2023 23:05:58 +1300 Subject: [PATCH 02/32] fix: dotfile copying and ignoring other files --- flake.nix | 2 +- ssg/src/Main.hs | 14 +++++++++++++- ssg/ssg.cabal | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b6e0c33..8ef59c8 100644 --- a/flake.nix +++ b/flake.nix @@ -71,7 +71,7 @@ installPhase = '' mkdir -p "$out/dist" - cp -r dist/* "$out/dist" + cp -a dist/. "$out/dist" ''; }; diff --git a/ssg/src/Main.hs b/ssg/src/Main.hs index cd565dd..6ccd844 100644 --- a/ssg/src/Main.hs +++ b/ssg/src/Main.hs @@ -1,10 +1,12 @@ {-# LANGUAGE OverloadedStrings #-} import Control.Monad (forM_) +import Data.List (isPrefixOf, isSuffixOf) import Data.Maybe (fromMaybe) import Hakyll import qualified Data.Text as T import qualified Data.Text.Slugger as Slugger +import System.FilePath (takeFileName) import Text.Pandoc ( Extension (Ext_fenced_code_attributes, Ext_footnotes, Ext_gfm_auto_identifiers, Ext_implicit_header_references, Ext_smart), Extensions, @@ -28,17 +30,27 @@ siteName :: String siteName = "My Site Name" +-- Default configuration: https://github.com/jaspervdj/hakyll/blob/cd74877d41f41c4fba27768f84255e797748a31a/lib/Hakyll/Core/Configuration.hs#L101-L125 config :: Configuration config = defaultConfiguration { destinationDirectory = "dist" - , ignoreFile = const False + , ignoreFile = ignoreFile' , previewHost = "127.0.0.1" , previewPort = 8000 , providerDirectory = "src" , storeDirectory = "ssg/_cache" , tmpDirectory = "ssg/_tmp" } + where + ignoreFile' path + | "." `isPrefixOf` fileName = False + | "#" `isPrefixOf` fileName = True + | "~" `isSuffixOf` fileName = True + | ".swp" `isSuffixOf` fileName = True + | otherwise = False + where + fileName = takeFileName path -------------------------------------------------------------------------------- -- BUILD diff --git a/ssg/ssg.cabal b/ssg/ssg.cabal index 2c474c0..6bbad66 100644 --- a/ssg/ssg.cabal +++ b/ssg/ssg.cabal @@ -11,6 +11,7 @@ executable hakyll-site hs-source-dirs: src build-depends: base >= 4.8 , hakyll >= 4.14 + , filepath >= 1.0 , pandoc >= 2.11 , slugger >= 0.1.0.1 , text >= 1.2 && < 1.3 From 078ea8bd1a15355a4160965317eca0f621ee4cc0 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Wed, 1 Feb 2023 21:01:52 +1300 Subject: [PATCH 03/32] chore: don't accidentally promot .io domains --- src/CNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CNAME b/src/CNAME index 34bf8db..1ce262e 100644 --- a/src/CNAME +++ b/src/CNAME @@ -1 +1 @@ -mywebsite123456789123456789.io +mywebsite123456789123456789.com From 1733bdc735bf6977dc5709753e0f8e668630decf Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Wed, 1 Feb 2023 21:05:33 +1300 Subject: [PATCH 04/32] chore: add Jekyll config file note --- src/_config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/_config.yaml b/src/_config.yaml index 7a30e5f..1f83507 100644 --- a/src/_config.yaml +++ b/src/_config.yaml @@ -1 +1,8 @@ +# This is a Jekyll config file. Jekyll is used by GitHub +# Pages to manage static site generation / distribution. +# If you don't use GitHub Pages or don't need to customize +# it, you can delete this file and remove its entry in +# `../ssg/src/Main.hs`. +# +# https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll include: [] From f4783a39c86059881ea25de3d35df12862b27c82 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Wed, 1 Feb 2023 21:42:49 +1300 Subject: [PATCH 05/32] chore: minor optimizations to the examples --- src/index.html | 2 +- src/posts/2020-09-21-hello-world.md | 2 +- src/posts/2020-09-22-hola-mundo.md | 2 +- src/templates/default.html | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.html b/src/index.html index 30f5fb6..c705cdc 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,7 @@ title: "Hello, world!" A woman sitting on a bench amongst trees at the end of a boardwalk leading to a pond with mountains in the background
diff --git a/src/posts/2020-09-21-hello-world.md b/src/posts/2020-09-21-hello-world.md index 6fb6b67..1cdd699 100644 --- a/src/posts/2020-09-21-hello-world.md +++ b/src/posts/2020-09-21-hello-world.md @@ -14,7 +14,7 @@ Hello, world! I am here! Grapevines among rolling hills leading to the sea Haskell, for example: diff --git a/src/posts/2020-09-22-hola-mundo.md b/src/posts/2020-09-22-hola-mundo.md index 2bb0db9..3e17349 100644 --- a/src/posts/2020-09-22-hola-mundo.md +++ b/src/posts/2020-09-22-hola-mundo.md @@ -14,7 +14,7 @@ updated: "2020-09-23T12:00:00Z" Grapevines among rolling hills leading to the sea Haskell, por ejemplo: diff --git a/src/templates/default.html b/src/templates/default.html index b099c14..038d1cb 100644 --- a/src/templates/default.html +++ b/src/templates/default.html @@ -26,13 +26,13 @@ $endif$ + $if(image)$ + + $endif$ - $if(image)$ - - $endif$ $if(authorTwitter)$ $endif$ @@ -44,6 +44,6 @@ $body$ - + From 489b648b4d3107fc9188cb05a93f609c3095a6e3 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Wed, 1 Feb 2023 21:43:23 +1300 Subject: [PATCH 06/32] feat: localize personalization This puts all of the hakyll personalization configuration in a single place near the top of `ssg/src/Main.hs` --- ssg/src/Main.hs | 62 +++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/ssg/src/Main.hs b/ssg/src/Main.hs index 6ccd844..6ff6e03 100644 --- a/ssg/src/Main.hs +++ b/ssg/src/Main.hs @@ -19,17 +19,33 @@ import Text.Pandoc ) import Text.Pandoc.Highlighting (Style, breezeDark, styleToCss) +-------------------------------------------------------------------------------- +-- PERSONALIZATION + +mySiteName :: String +mySiteName = "My Site Name" + +mySiteRoot :: String +mySiteRoot = "https://my-site.com" + +myFeedTitle :: String +myFeedTitle = "My Site" + +myFeedDescription :: String +myFeedDescription = "My Site Description" + +myFeedAuthorName :: String +myFeedAuthorName = "My Name" + +myFeedAuthorEmail :: String +myFeedAuthorEmail = "me@myemail.com" + +myFeedRoot :: String +myFeedRoot = mySiteRoot + -------------------------------------------------------------------------------- -- CONFIG -root :: String -root = - "https://my-site.com" - -siteName :: String -siteName = - "My Site Name" - -- Default configuration: https://github.com/jaspervdj/hakyll/blob/cd74877d41f41c4fba27768f84255e797748a31a/lib/Hakyll/Core/Configuration.hs#L101-L125 config :: Configuration config = @@ -91,8 +107,8 @@ main = hakyllWith config $ do let indexCtx = listField "posts" postCtx (return posts) - <> constField "root" root - <> constField "siteName" siteName + <> constField "root" mySiteRoot + <> constField "siteName" mySiteName <> defaultContext getResourceBody @@ -109,8 +125,8 @@ main = hakyllWith config $ do let pages = posts sitemapCtx = - constField "root" root - <> constField "siteName" siteName + constField "root" mySiteRoot + <> constField "siteName" mySiteName <> listField "pages" postCtx (return pages) makeItem ("" :: String) @@ -128,7 +144,6 @@ main = hakyllWith config $ do route idRoute compile (makeStyle pandocHighlightStyle) - -------------------------------------------------------------------------------- -- COMPILER HELPERS @@ -147,8 +162,8 @@ feedCtx = postCtx :: Context String postCtx = - constField "root" root - <> constField "siteName" siteName + constField "root" mySiteRoot + <> constField "siteName" mySiteName <> dateField "date" "%Y-%m-%d" <> defaultContext @@ -210,6 +225,7 @@ pandocHighlightStyle :: Style pandocHighlightStyle = breezeDark -- https://hackage.haskell.org/package/pandoc/docs/Text-Pandoc-Highlighting.html +-------------------------------------------------------------------------------- -- FEEDS type FeedRenderer = @@ -227,23 +243,19 @@ feedCompiler renderer = feedConfiguration :: FeedConfiguration feedConfiguration = FeedConfiguration - { feedTitle = "My Site" - , feedDescription = "My Site Description" - , feedAuthorName = "My Name" - , feedAuthorEmail = "me@myemail.com" - , feedRoot = root + { feedTitle = myFeedTitle + , feedDescription = myFeedDescription + , feedAuthorName = myFeedAuthorName + , feedAuthorEmail = myFeedAuthorEmail + , feedRoot = myFeedRoot } -------------------------------------------------------------------------------- -- CUSTOM ROUTE -getTitleFromMeta :: Metadata -> String -getTitleFromMeta = - fromMaybe "no title" . lookupString "title" - fileNameFromTitle :: Metadata -> FilePath fileNameFromTitle = - T.unpack . (`T.append` ".html") . Slugger.toSlug . T.pack . getTitleFromMeta + T.unpack . (`T.append` ".html") . Slugger.toSlug . T.pack . safeTitle titleRoute :: Metadata -> Routes titleRoute = From c0525806ddd201fb05bdcdf588f469af5e04991e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 00:00:38 +0000 Subject: [PATCH 07/32] chore(deps): bump cachix/install-nix-action from 18 to 19 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acbd2c4..426bf16 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Nix - uses: cachix/install-nix-action@v18 + uses: cachix/install-nix-action@v19 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 9a4b698d68996f5a40c3f55ad5ba1fa90972b17b Mon Sep 17 00:00:00 2001 From: Robert Pearce Date: Wed, 22 Feb 2023 13:53:13 +1300 Subject: [PATCH 08/32] chore(docs): add quick tips to readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e72c8e7..ae1768b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,19 @@ [Hakyll](https://jaspervdj.be/hakyll/) + [Nix](https://nixos.org) template +## Quick tips + +* Read the tutorial to get started! https://robertwpearce.com/the-hakyll-nix-template-tutorial.html +* If you make changes to anything inside of `ssg/`, you'll need to clean the + hakyll cache and rebuild. This is the preferred series of commands for + rebuilding (with logs), cleaning the cache, and re-running the dev server: + + ```default + nix build --print-build-logs && \ + nix run . clean && \ + nix run . watch + ``` + ## Features * Build your site into the `./result/dist` folder: From 372422ab18e2e1bb3cbd48c647b924336217056a Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Thu, 23 Feb 2023 21:57:39 +1300 Subject: [PATCH 09/32] feat: add rss link alternate tag to head --- src/templates/default.html | 4 ++++ ssg/src/Main.hs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/templates/default.html b/src/templates/default.html index 038d1cb..67a44af 100644 --- a/src/templates/default.html +++ b/src/templates/default.html @@ -39,6 +39,10 @@ + + + + diff --git a/ssg/src/Main.hs b/ssg/src/Main.hs index 6ff6e03..14494ef 100644 --- a/ssg/src/Main.hs +++ b/ssg/src/Main.hs @@ -29,7 +29,7 @@ mySiteRoot :: String mySiteRoot = "https://my-site.com" myFeedTitle :: String -myFeedTitle = "My Site" +myFeedTitle = "My Feed Title" myFeedDescription :: String myFeedDescription = "My Site Description" @@ -108,6 +108,7 @@ main = hakyllWith config $ do let indexCtx = listField "posts" postCtx (return posts) <> constField "root" mySiteRoot + <> constField "feedTitle" myFeedTitle <> constField "siteName" mySiteName <> defaultContext @@ -163,6 +164,7 @@ feedCtx = postCtx :: Context String postCtx = constField "root" mySiteRoot + <> constField "feedTitle" myFeedTitle <> constField "siteName" mySiteName <> dateField "date" "%Y-%m-%d" <> defaultContext From 38d96f5b1e92f2788cd61ed6cb847d093bb0fb76 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Thu, 23 Feb 2023 21:58:08 +1300 Subject: [PATCH 10/32] chore: cleanup JS example; change posts to not use small --- src/js/script.js | 6 +++--- src/templates/post.html | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 4fc48a9..9efe503 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -1,3 +1,3 @@ -;(function(w, d) { - console.log('Hello, world!', w, d) -})(window, document); +;(function() { + console.log('Hello, world!'); +})(); diff --git a/src/templates/post.html b/src/templates/post.html index 7023a6c..4b64fd6 100644 --- a/src/templates/post.html +++ b/src/templates/post.html @@ -5,10 +5,7 @@ $title$
- $date$ - $if(updated)$ - (updated: $updated$) - $endif$ + $date$ $if(updated)$(updated: $updated$)$endif$
From 40439985f8dcdb0e4a91dd41f64bbe9dff8e70a8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Mar 2023 00:56:48 +0000 Subject: [PATCH 11/32] chore(deps): bump cachix/install-nix-action from 19 to 20 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 426bf16..a0b8b2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Nix - uses: cachix/install-nix-action@v19 + uses: cachix/install-nix-action@v20 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 54e982c8e6a65ce365724a4165b4db2a41649d79 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 May 2023 01:04:33 +0000 Subject: [PATCH 12/32] chore(deps): bump cachix/install-nix-action from 20 to 21 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0b8b2e..e35b43d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Nix - uses: cachix/install-nix-action@v20 + uses: cachix/install-nix-action@v21 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 572cf71e6251b7b32b10ba506bf617572da35218 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 00:58:07 +0000 Subject: [PATCH 13/32] chore(deps): bump cachix/install-nix-action from 21 to 22 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e35b43d..823c966 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Nix - uses: cachix/install-nix-action@v21 + uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 44ed53753e2bd1f477eea07a0731a010ec43fa72 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 00:20:30 +0000 Subject: [PATCH 14/32] chore(deps): bump crazy-max/ghaction-github-pages from 3.1.0 to 3.2.0 Bumps [crazy-max/ghaction-github-pages](https://github.com/crazy-max/ghaction-github-pages) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/crazy-max/ghaction-github-pages/releases) - [Commits](https://github.com/crazy-max/ghaction-github-pages/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: crazy-max/ghaction-github-pages dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 823c966..0ae2f4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: - name: Deploy to GitHub Pages if: success() - uses: crazy-max/ghaction-github-pages@v3.1.0 + uses: crazy-max/ghaction-github-pages@v3.2.0 with: build_dir: result target_branch: gh-pages From 375cddf2589dab327621b3dc69856afd95cfe4ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 00:38:01 +0000 Subject: [PATCH 15/32] chore(deps): bump cachix/install-nix-action from 22 to 23 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ae2f4c..8569f94 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Nix - uses: cachix/install-nix-action@v22 + uses: cachix/install-nix-action@v23 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From cec1bac2553749546fb1c114161fa56c0d47d8f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:01:55 +0000 Subject: [PATCH 16/32] chore(deps): bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8569f94..96f105a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: build-nix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Nix uses: cachix/install-nix-action@v23 From 47479bbb857fa40b7b3771075ba31cb57c73d6b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 00:59:55 +0000 Subject: [PATCH 17/32] chore(deps): bump crazy-max/ghaction-github-pages from 3.2.0 to 4.0.0 Bumps [crazy-max/ghaction-github-pages](https://github.com/crazy-max/ghaction-github-pages) from 3.2.0 to 4.0.0. - [Release notes](https://github.com/crazy-max/ghaction-github-pages/releases) - [Commits](https://github.com/crazy-max/ghaction-github-pages/compare/v3.2.0...v4.0.0) --- updated-dependencies: - dependency-name: crazy-max/ghaction-github-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96f105a..364e48b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: - name: Deploy to GitHub Pages if: success() - uses: crazy-max/ghaction-github-pages@v3.2.0 + uses: crazy-max/ghaction-github-pages@v4.0.0 with: build_dir: result target_branch: gh-pages From 3f1980b9abdc2e8ad2bf5546d6700f956fbf8832 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 01:02:03 +0000 Subject: [PATCH 18/32] chore(deps): bump actions/download-artifact from 2 to 3 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 364e48b..9abf6c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: pages path: result From 2c4905df4b7af8cba53c9149c6a364a752641419 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:49:38 +0000 Subject: [PATCH 19/32] chore(deps): bump cachix/cachix-action from 12 to 13 Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](https://github.com/cachix/cachix-action/compare/v12...v13) --- updated-dependencies: - dependency-name: cachix/cachix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9abf6c9..32e2266 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= - name: Build with cachix - uses: cachix/cachix-action@v12 + uses: cachix/cachix-action@v13 with: name: hakyll-nix-template authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} From d38072dc05b1cb68ae3e463946671e66ad7107fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:49:45 +0000 Subject: [PATCH 20/32] chore(deps): bump cachix/install-nix-action from 23 to 24 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9abf6c9..627ec59 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v23 + uses: cachix/install-nix-action@v24 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 11d9dc85c7af26e2d05b8418a28ec323d54b8762 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:39:20 +0000 Subject: [PATCH 21/32] chore(deps): bump actions/upload-artifact from 2 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c552567..b0d3e93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - run: nix build --accept-flake-config - name: Artifact pages - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pages path: result/dist From b13c1126d7a85caa8a186911f2c75000a46d8c8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:39:25 +0000 Subject: [PATCH 22/32] chore(deps): bump actions/download-artifact from 3 to 4 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c552567..a06d642 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: pages path: result From 49a81250e8dbeec968e157c4e514a7faa449b007 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 00:23:36 +0000 Subject: [PATCH 23/32] chore(deps): bump cachix/cachix-action from 13 to 14 Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 13 to 14. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](https://github.com/cachix/cachix-action/compare/v13...v14) --- updated-dependencies: - dependency-name: cachix/cachix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4376e9..42ae831 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= - name: Build with cachix - uses: cachix/cachix-action@v13 + uses: cachix/cachix-action@v14 with: name: hakyll-nix-template authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} From 51bfe2c26195dfa755af25b5d09d41311f49784a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 00:23:44 +0000 Subject: [PATCH 24/32] chore(deps): bump cachix/install-nix-action from 24 to 25 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4376e9..c56e578 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v24 + uses: cachix/install-nix-action@v25 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From ccbabbd3f873ea895d82fca29588482fd4efe4f0 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Tue, 30 Jan 2024 10:37:08 -0500 Subject: [PATCH 25/32] chore: bump GHC & flakes; rm zw3rk cache because it's not working --- .github/workflows/main.yml | 4 +- flake.lock | 739 +++++++++++++------------------------ flake.nix | 4 +- 3 files changed, 268 insertions(+), 479 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 426bf16..4cf26df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,8 +19,8 @@ jobs: allow-import-from-derivation = true auto-optimise-store = true experimental-features = nix-command flakes - substituters = https://cache.nixos.org https://cache.iog.io https://cache.zw3rk.com - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= + substituters = https://cache.nixos.org https://cache.iog.io + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= - name: Build with cachix uses: cachix/cachix-action@v12 diff --git a/flake.lock b/flake.lock index 050a98c..c14bce6 100644 --- a/flake.lock +++ b/flake.lock @@ -16,21 +16,6 @@ "type": "github" } }, - "blank": { - "locked": { - "lastModified": 1625557891, - "narHash": "sha256-O8/MWsPBGhhyPoPLHZAuoZiiHo9q6FLlEeIDEXuj6T4=", - "owner": "divnix", - "repo": "blank", - "rev": "5a5d2684073d9f563072ed07c871d577a6c614a8", - "type": "github" - }, - "original": { - "owner": "divnix", - "repo": "blank", - "type": "github" - } - }, "cabal-32": { "flake": false, "locked": { @@ -51,11 +36,11 @@ "cabal-34": { "flake": false, "locked": { - "lastModified": 1640353650, - "narHash": "sha256-N1t6M3/wqj90AEdRkeC8i923gQYUpzSr8b40qVOZ1Rk=", + "lastModified": 1645834128, + "narHash": "sha256-wG3d+dOt14z8+ydz4SL7pwGfe7SiimxcD/LOuPCV6xM=", "owner": "haskell", "repo": "cabal", - "rev": "942639c18c0cd8ec53e0a6f8d120091af35312cd", + "rev": "5ff598c67f53f7c4f48e31d722ba37172230c462", "type": "github" }, "original": { @@ -68,11 +53,11 @@ "cabal-36": { "flake": false, "locked": { - "lastModified": 1641652457, - "narHash": "sha256-BlFPKP4C4HRUJeAbdembX1Rms1LD380q9s0qVDeoAak=", + "lastModified": 1669081697, + "narHash": "sha256-I5or+V7LZvMxfbYgZATU4awzkicBwwok4mVoje+sGmU=", "owner": "haskell", "repo": "cabal", - "rev": "f27667f8ec360c475027dcaee0138c937477b070", + "rev": "8fd619e33d34924a94e691c5fea2c42f0fc7f144", "type": "github" }, "original": { @@ -98,64 +83,6 @@ "type": "github" } }, - "devshell": { - "inputs": { - "flake-utils": [ - "haskellNix", - "tullia", - "std", - "flake-utils" - ], - "nixpkgs": [ - "haskellNix", - "tullia", - "std", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1663445644, - "narHash": "sha256-+xVlcK60x7VY1vRJbNUEAHi17ZuoQxAIH4S4iUFUGBA=", - "owner": "numtide", - "repo": "devshell", - "rev": "e3dc3e21594fe07bdb24bdf1c8657acaa4cb8f66", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "devshell", - "type": "github" - } - }, - "dmerge": { - "inputs": { - "nixlib": [ - "haskellNix", - "tullia", - "std", - "nixpkgs" - ], - "yants": [ - "haskellNix", - "tullia", - "std", - "yants" - ] - }, - "locked": { - "lastModified": 1659548052, - "narHash": "sha256-fzI2gp1skGA8mQo/FBFrUAtY0GQkAIAaV/V127TJPyY=", - "owner": "divnix", - "repo": "data-merge", - "rev": "d160d18ce7b1a45b88344aa3f13ed1163954b497", - "type": "github" - }, - "original": { - "owner": "divnix", - "repo": "data-merge", - "type": "github" - } - }, "flake-compat": { "flake": false, "locked": { @@ -173,89 +100,16 @@ "type": "github" } }, - "flake-compat_2": { - "flake": false, - "locked": { - "lastModified": 1650374568, - "narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "b4a34015c698c7793d592d66adbab377907a2be8", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-utils": { - "locked": { - "lastModified": 1667395993, - "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", - "type": "github" + "inputs": { + "systems": "systems" }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { "locked": { - "lastModified": 1644229661, - "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "owner": "numtide", "repo": "flake-utils", - "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_3": { - "locked": { - "lastModified": 1653893745, - "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_4": { - "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_5": { - "locked": { - "lastModified": 1653893745, - "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "type": "github" }, "original": { @@ -281,33 +135,51 @@ "type": "github" } }, - "gomod2nix": { - "inputs": { - "nixpkgs": "nixpkgs_2", - "utils": "utils" - }, + "ghc98X": { + "flake": false, "locked": { - "lastModified": 1655245309, - "narHash": "sha256-d/YPoQ/vFn1+GTmSdvbSBSTOai61FONxB4+Lt6w/IVI=", - "owner": "tweag", - "repo": "gomod2nix", - "rev": "40d32f82fc60d66402eb0972e6e368aeab3faf58", - "type": "github" + "lastModified": 1696643148, + "narHash": "sha256-E02DfgISH7EvvNAu0BHiPvl1E5FGMDi0pWdNZtIBC9I=", + "ref": "ghc-9.8", + "rev": "443e870d977b1ab6fc05f47a9a17bc49296adbd6", + "revCount": 61642, + "submodules": true, + "type": "git", + "url": "https://gitlab.haskell.org/ghc/ghc" }, "original": { - "owner": "tweag", - "repo": "gomod2nix", - "type": "github" + "ref": "ghc-9.8", + "submodules": true, + "type": "git", + "url": "https://gitlab.haskell.org/ghc/ghc" + } + }, + "ghc99": { + "flake": false, + "locked": { + "lastModified": 1701580282, + "narHash": "sha256-drA01r3JrXnkKyzI+owMZGxX0JameMzjK0W5jJE/+V4=", + "ref": "refs/heads/master", + "rev": "f5eb0f2982e9cf27515e892c4bdf634bcfb28459", + "revCount": 62197, + "submodules": true, + "type": "git", + "url": "https://gitlab.haskell.org/ghc/ghc" + }, + "original": { + "submodules": true, + "type": "git", + "url": "https://gitlab.haskell.org/ghc/ghc" } }, "hackage": { "flake": false, "locked": { - "lastModified": 1674865626, - "narHash": "sha256-tNwL6Ar78Xn1z7t/knaom67Sor0oz40ECh1QrVfOARg=", + "lastModified": 1706574159, + "narHash": "sha256-OcE1NT4zQfV4h8Ybq1ttNT+TkXjTV1O2doiCfJzjCbw=", "owner": "input-output-hk", "repo": "hackage.nix", - "rev": "f81e5c52cf6068d35fa2c1c47025a5100afc50fa", + "rev": "ccff69cc942afd51dbdd7466192e3f4cfe09cde2", "type": "github" }, "original": { @@ -324,12 +196,21 @@ "cabal-36": "cabal-36", "cardano-shell": "cardano-shell", "flake-compat": "flake-compat", - "flake-utils": "flake-utils_2", "ghc-8.6.5-iohk": "ghc-8.6.5-iohk", + "ghc98X": "ghc98X", + "ghc99": "ghc99", "hackage": "hackage", + "hls-1.10": "hls-1.10", + "hls-2.0": "hls-2.0", + "hls-2.2": "hls-2.2", + "hls-2.3": "hls-2.3", + "hls-2.4": "hls-2.4", + "hls-2.5": "hls-2.5", + "hls-2.6": "hls-2.6", "hpc-coveralls": "hpc-coveralls", "hydra": "hydra", "iserv-proxy": "iserv-proxy", + "nix-tools-static": "nix-tools-static", "nixpkgs": [ "haskellNix", "nixpkgs-unstable" @@ -339,17 +220,18 @@ "nixpkgs-2111": "nixpkgs-2111", "nixpkgs-2205": "nixpkgs-2205", "nixpkgs-2211": "nixpkgs-2211", + "nixpkgs-2305": "nixpkgs-2305", + "nixpkgs-2311": "nixpkgs-2311", "nixpkgs-unstable": "nixpkgs-unstable", "old-ghc-nix": "old-ghc-nix", - "stackage": "stackage", - "tullia": "tullia" + "stackage": "stackage" }, "locked": { - "lastModified": 1674867065, - "narHash": "sha256-JZ7bOjbSNmlmk5SP8t+1VmiIqz1LUAUlw+LLB4LsiuY=", + "lastModified": 1706575804, + "narHash": "sha256-/2oEg1CD3FtXOsF0dQm/5RLGZ5LwILA5Gnuw/FkNm4w=", "owner": "input-output-hk", "repo": "haskell.nix", - "rev": "40364a66179bcb2cd186909389dff7a176375ac3", + "rev": "8bc501003577cf9a1077f04d2dabf58f68b256b6", "type": "github" }, "original": { @@ -358,6 +240,125 @@ "type": "github" } }, + "hls-1.10": { + "flake": false, + "locked": { + "lastModified": 1680000865, + "narHash": "sha256-rc7iiUAcrHxwRM/s0ErEsSPxOR3u8t7DvFeWlMycWgo=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "b08691db779f7a35ff322b71e72a12f6e3376fd9", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "1.10.0.0", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.0": { + "flake": false, + "locked": { + "lastModified": 1687698105, + "narHash": "sha256-OHXlgRzs/kuJH8q7Sxh507H+0Rb8b7VOiPAjcY9sM1k=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "783905f211ac63edf982dd1889c671653327e441", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.0.0.1", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.2": { + "flake": false, + "locked": { + "lastModified": 1693064058, + "narHash": "sha256-8DGIyz5GjuCFmohY6Fa79hHA/p1iIqubfJUTGQElbNk=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "b30f4b6cf5822f3112c35d14a0cba51f3fe23b85", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.2.0.0", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.3": { + "flake": false, + "locked": { + "lastModified": 1695910642, + "narHash": "sha256-tR58doOs3DncFehHwCLczJgntyG/zlsSd7DgDgMPOkI=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "458ccdb55c9ea22cd5d13ec3051aaefb295321be", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.3.0.0", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.4": { + "flake": false, + "locked": { + "lastModified": 1699862708, + "narHash": "sha256-YHXSkdz53zd0fYGIYOgLt6HrA0eaRJi9mXVqDgmvrjk=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "54507ef7e85fa8e9d0eb9a669832a3287ffccd57", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.4.0.1", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.5": { + "flake": false, + "locked": { + "lastModified": 1701080174, + "narHash": "sha256-fyiR9TaHGJIIR0UmcCb73Xv9TJq3ht2ioxQ2mT7kVdc=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "27f8c3d3892e38edaef5bea3870161815c4d014c", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.5.0.0", + "repo": "haskell-language-server", + "type": "github" + } + }, + "hls-2.6": { + "flake": false, + "locked": { + "lastModified": 1705325287, + "narHash": "sha256-+P87oLdlPyMw8Mgoul7HMWdEvWP/fNlo8jyNtwME8E8=", + "owner": "haskell", + "repo": "haskell-language-server", + "rev": "6e0b342fa0327e628610f2711f8c3e4eaaa08b1e", + "type": "github" + }, + "original": { + "owner": "haskell", + "ref": "2.6.0.0", + "repo": "haskell-language-server", + "type": "github" + } + }, "hpc-coveralls": { "flake": false, "locked": { @@ -385,11 +386,11 @@ ] }, "locked": { - "lastModified": 1646878427, - "narHash": "sha256-KtbrofMtN8GlM7D+n90kixr7QpSlVmdN+vK5CA/aRzc=", + "lastModified": 1671755331, + "narHash": "sha256-hXsgJj0Cy0ZiCiYdW2OdBz5WmFyOMKuw4zyxKpgUKm4=", "owner": "NixOS", "repo": "hydra", - "rev": "28b682b85b7efc5cf7974065792a1f22203a5927", + "rev": "f48f00ee6d5727ae3e488cbf9ce157460853fea8", "type": "github" }, "original": { @@ -400,11 +401,11 @@ "iserv-proxy": { "flake": false, "locked": { - "lastModified": 1670983692, - "narHash": "sha256-avLo34JnI9HNyOuauK5R69usJm+GfW3MlyGlYxZhTgY=", + "lastModified": 1691634696, + "narHash": "sha256-MZH2NznKC/gbgBu8NgIibtSUZeJ00HTLJ0PlWKCBHb0=", "ref": "hkm/remote-iserv", - "rev": "50d0abb3317ac439a4e7495b185a64af9b7b9300", - "revCount": 10, + "rev": "43a979272d9addc29fbffc2e8542c5d96e993d73", + "revCount": 14, "type": "git", "url": "https://gitlab.haskell.org/hamishmack/iserv-proxy.git" }, @@ -430,46 +431,6 @@ "type": "github" } }, - "mdbook-kroki-preprocessor": { - "flake": false, - "locked": { - "lastModified": 1661755005, - "narHash": "sha256-1TJuUzfyMycWlOQH67LR63/ll2GDZz25I3JfScy/Jnw=", - "owner": "JoelCourtney", - "repo": "mdbook-kroki-preprocessor", - "rev": "93adb5716d035829efed27f65f2f0833a7d3e76f", - "type": "github" - }, - "original": { - "owner": "JoelCourtney", - "repo": "mdbook-kroki-preprocessor", - "type": "github" - } - }, - "n2c": { - "inputs": { - "flake-utils": "flake-utils_5", - "nixpkgs": [ - "haskellNix", - "tullia", - "std", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1665039323, - "narHash": "sha256-SAh3ZjFGsaCI8FRzXQyp56qcGdAqgKEfJWPCQ0Sr7tQ=", - "owner": "nlewo", - "repo": "nix2container", - "rev": "b008fe329ffb59b67bf9e7b08ede6ee792f2741a", - "type": "github" - }, - "original": { - "owner": "nlewo", - "repo": "nix2container", - "type": "github" - } - }, "nix": { "inputs": { "lowdown-src": "lowdown-src", @@ -477,122 +438,51 @@ "nixpkgs-regression": "nixpkgs-regression" }, "locked": { - "lastModified": 1643066034, - "narHash": "sha256-xEPeMcNJVOeZtoN+d+aRwolpW8mFSEQx76HTRdlhPhg=", + "lastModified": 1661606874, + "narHash": "sha256-9+rpYzI+SmxJn+EbYxjGv68Ucp22bdFUSy/4LkHkkDQ=", "owner": "NixOS", "repo": "nix", - "rev": "a1cd7e58606a41fcf62bf8637804cf8306f17f62", + "rev": "11e45768b34fdafdcf019ddbd337afa16127ff0f", "type": "github" }, "original": { "owner": "NixOS", - "ref": "2.6.0", + "ref": "2.11.0", "repo": "nix", "type": "github" } }, - "nix-nomad": { - "inputs": { - "flake-compat": "flake-compat_2", - "flake-utils": [ - "haskellNix", - "tullia", - "nix2container", - "flake-utils" - ], - "gomod2nix": "gomod2nix", - "nixpkgs": [ - "haskellNix", - "tullia", - "nixpkgs" - ], - "nixpkgs-lib": [ - "haskellNix", - "tullia", - "nixpkgs" - ] - }, + "nix-tools-static": { + "flake": false, "locked": { - "lastModified": 1658277770, - "narHash": "sha256-T/PgG3wUn8Z2rnzfxf2VqlR1CBjInPE0l1yVzXxPnt0=", - "owner": "tristanpemble", - "repo": "nix-nomad", - "rev": "054adcbdd0a836ae1c20951b67ed549131fd2d70", + "lastModified": 1706266250, + "narHash": "sha256-9t+GRk3eO9muCtKdNAwBtNBZ5dH1xHcnS17WaQyftwA=", + "owner": "input-output-hk", + "repo": "haskell-nix-example", + "rev": "580cb6db546a7777dad3b9c0fa487a366c045c4e", "type": "github" }, "original": { - "owner": "tristanpemble", - "repo": "nix-nomad", - "type": "github" - } - }, - "nix2container": { - "inputs": { - "flake-utils": "flake-utils_3", - "nixpkgs": "nixpkgs_3" - }, - "locked": { - "lastModified": 1658567952, - "narHash": "sha256-XZ4ETYAMU7XcpEeAFP3NOl9yDXNuZAen/aIJ84G+VgA=", - "owner": "nlewo", - "repo": "nix2container", - "rev": "60bb43d405991c1378baf15a40b5811a53e32ffa", - "type": "github" - }, - "original": { - "owner": "nlewo", - "repo": "nix2container", - "type": "github" - } - }, - "nixago": { - "inputs": { - "flake-utils": [ - "haskellNix", - "tullia", - "std", - "flake-utils" - ], - "nixago-exts": [ - "haskellNix", - "tullia", - "std", - "blank" - ], - "nixpkgs": [ - "haskellNix", - "tullia", - "std", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1661824785, - "narHash": "sha256-/PnwdWoO/JugJZHtDUioQp3uRiWeXHUdgvoyNbXesz8=", - "owner": "nix-community", - "repo": "nixago", - "rev": "8c1f9e5f1578d4b2ea989f618588d62a335083c3", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixago", + "owner": "input-output-hk", + "ref": "nix", + "repo": "haskell-nix-example", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1632864508, - "narHash": "sha256-d127FIvGR41XbVRDPVvozUPQ/uRHbHwvfyKHwEt5xFM=", + "lastModified": 1657693803, + "narHash": "sha256-G++2CJ9u0E7NNTAi9n5G8TdDmGJXcIjkJ3NF8cetQB8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "82891b5e2c2359d7e58d08849e4c89511ab94234", + "rev": "365e1b3a859281cf11b94f87231adeabbdd878a2", "type": "github" }, "original": { - "id": "nixpkgs", - "ref": "nixos-21.05-small", - "type": "indirect" + "owner": "NixOS", + "ref": "nixos-22.05-small", + "repo": "nixpkgs", + "type": "github" } }, "nixpkgs-2003": { @@ -645,11 +535,11 @@ }, "nixpkgs-2205": { "locked": { - "lastModified": 1663981975, - "narHash": "sha256-TKaxWAVJR+a5JJauKZqibmaM5e/Pi5tBDx9s8fl/kSE=", + "lastModified": 1685573264, + "narHash": "sha256-Zffu01pONhs/pqH07cjlF10NnMDLok8ix5Uk4rhOnZQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "309faedb8338d3ae8ad8f1043b3ccf48c9cc2970", + "rev": "380be19fbd2d9079f677978361792cb25e8a3635", "type": "github" }, "original": { @@ -661,11 +551,11 @@ }, "nixpkgs-2211": { "locked": { - "lastModified": 1669997163, - "narHash": "sha256-vhjC0kZMFoN6jzK0GR+tBzKi5KgBXgehadfidW8+Va4=", + "lastModified": 1688392541, + "narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6f87491a54d8d64d30af6663cb3bf5d2ee7db958", + "rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b", "type": "github" }, "original": { @@ -675,6 +565,38 @@ "type": "github" } }, + "nixpkgs-2305": { + "locked": { + "lastModified": 1701362232, + "narHash": "sha256-GVdzxL0lhEadqs3hfRLuj+L1OJFGiL/L7gCcelgBlsw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d2332963662edffacfddfad59ff4f709dde80ffe", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-23.05-darwin", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-2311": { + "locked": { + "lastModified": 1701386440, + "narHash": "sha256-xI0uQ9E7JbmEy/v8kR9ZQan6389rHug+zOtZeZFiDJk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "293822e55ec1872f715a66d0eda9e592dc14419f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-23.11-darwin", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-regression": { "locked": { "lastModified": 1643052045, @@ -685,71 +607,25 @@ "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "NixOS", + "repo": "nixpkgs", "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "indirect" + "type": "github" } }, "nixpkgs-unstable": { "locked": { - "lastModified": 1663905476, - "narHash": "sha256-0CSwRKaYravh9v6qSlBpM0gNg0UhKT2lL7Yn6Zbx7UM=", + "lastModified": 1694822471, + "narHash": "sha256-6fSDCj++lZVMZlyqOe9SIOL8tYSBz1bI8acwovRwoX8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e14f9fb57315f0d4abde222364f19f88c77d2b79", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1653581809, - "narHash": "sha256-Uvka0V5MTGbeOfWte25+tfRL3moECDh1VwokWSZUdoY=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "83658b28fe638a170a19b8933aa008b30640fbd1", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1654807842, - "narHash": "sha256-ADymZpr6LuTEBXcy6RtFHcUZdjKTBRTMYwu19WOx17E=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "fc909087cc3386955f21b4665731dbdaceefb1d8", + "rev": "47585496bcb13fb72e4a90daeea2f434e2501998", "type": "github" }, "original": { "owner": "NixOS", "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_4": { - "locked": { - "lastModified": 1665087388, - "narHash": "sha256-FZFPuW9NWHJteATOf79rZfwfRn5fE0wi9kRzvGfDHPA=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "95fda953f6db2e9496d2682c4fc7b82f959878f7", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", + "rev": "47585496bcb13fb72e4a90daeea2f434e2501998", "type": "github" } }, @@ -783,11 +659,11 @@ "stackage": { "flake": false, "locked": { - "lastModified": 1674778180, - "narHash": "sha256-Oz7Ywn6G5P/Hg26ZazeC88kiuxOF2R9lQ37M5aM8hz0=", + "lastModified": 1706573344, + "narHash": "sha256-nOc8eVWcS//QjV4tdZlJVMWPyGauD71BNdCXjvTRXDs=", "owner": "input-output-hk", "repo": "stackage.nix", - "rev": "16105932ab32c4f2a95ab80d979b9d4bd76ab0a4", + "rev": "c911e99f7ab959a8d2b83c038a803c255a6d215a", "type": "github" }, "original": { @@ -796,103 +672,18 @@ "type": "github" } }, - "std": { - "inputs": { - "blank": "blank", - "devshell": "devshell", - "dmerge": "dmerge", - "flake-utils": "flake-utils_4", - "makes": [ - "haskellNix", - "tullia", - "std", - "blank" - ], - "mdbook-kroki-preprocessor": "mdbook-kroki-preprocessor", - "microvm": [ - "haskellNix", - "tullia", - "std", - "blank" - ], - "n2c": "n2c", - "nixago": "nixago", - "nixpkgs": "nixpkgs_4", - "yants": "yants" - }, + "systems": { "locked": { - "lastModified": 1665513321, - "narHash": "sha256-D6Pacw9yf/HMs84KYuCxHXnNDL7v43gtcka5URagFqE=", - "owner": "divnix", - "repo": "std", - "rev": "94a90eedb9cfc115b12ae8f6622d9904788559e4", + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { - "owner": "divnix", - "repo": "std", - "type": "github" - } - }, - "tullia": { - "inputs": { - "nix-nomad": "nix-nomad", - "nix2container": "nix2container", - "nixpkgs": [ - "haskellNix", - "nixpkgs" - ], - "std": "std" - }, - "locked": { - "lastModified": 1668711738, - "narHash": "sha256-CBjky16o9pqsGE1bWu6nRlRajgSXMEk+yaFQLibqXcE=", - "owner": "input-output-hk", - "repo": "tullia", - "rev": "ead1f515c251f0e060060ef0e2356a51d3dfe4b0", - "type": "github" - }, - "original": { - "owner": "input-output-hk", - "repo": "tullia", - "type": "github" - } - }, - "utils": { - "locked": { - "lastModified": 1653893745, - "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "yants": { - "inputs": { - "nixpkgs": [ - "haskellNix", - "tullia", - "std", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1660507851, - "narHash": "sha256-BKjq7JnVuUR/xDtcv6Vm9GYGKAblisXrAgybor9hT/s=", - "owner": "divnix", - "repo": "yants", - "rev": "0b895ca02a8fa72bad50b454cb3e7d8a66407c96", - "type": "github" - }, - "original": { - "owner": "divnix", - "repo": "yants", + "owner": "nix-systems", + "repo": "default", "type": "github" } } diff --git a/flake.nix b/flake.nix index 8ef59c8..d0d6fbd 100644 --- a/flake.nix +++ b/flake.nix @@ -6,11 +6,9 @@ bash-prompt = "[hakyll-nix]λ "; extra-substituters = [ "https://cache.iog.io" - "https://cache.zw3rk.com" # https://github.com/input-output-hk/haskell.nix/issues/1408 ]; extra-trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" - "loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=" ]; }; @@ -25,7 +23,7 @@ (final: prev: { hakyllProject = final.haskell-nix.project' { src = ./ssg; - compiler-nix-name = "ghc925"; + compiler-nix-name = "ghc948"; shell.buildInputs = [ hakyll-site ]; From 19055142e16a8168a2bcc9aa32073f5e8faa2ba9 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Tue, 30 Jan 2024 10:42:08 -0500 Subject: [PATCH 26/32] update workflow versions --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cf26df..c86011d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,10 +8,10 @@ jobs: build-nix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v19 + uses: cachix/install-nix-action@v25 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | @@ -23,7 +23,7 @@ jobs: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= - name: Build with cachix - uses: cachix/cachix-action@v12 + uses: cachix/cachix-action@v14 with: name: hakyll-nix-template authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -31,7 +31,7 @@ jobs: - run: nix build --accept-flake-config - name: Artifact pages - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pages path: result/dist @@ -43,14 +43,14 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: pages path: result - name: Deploy to GitHub Pages if: success() - uses: crazy-max/ghaction-github-pages@v3.1.0 + uses: crazy-max/ghaction-github-pages@v4.0.0 with: build_dir: result target_branch: gh-pages From 0d782ceb7ec486fce37ea9b43e5d9de1b0eba986 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Tue, 30 Jan 2024 10:52:21 -0500 Subject: [PATCH 27/32] fix build by updating cabal file and getting some nix things in line --- flake.nix | 7 +++++-- ssg/ssg.cabal | 24 +++++++++++++++++------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index d0d6fbd..c70f8d2 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ hakyllProject = final.haskell-nix.project' { src = ./ssg; compiler-nix-name = "ghc948"; + modules = [{ doHaddock = false; }]; shell.buildInputs = [ hakyll-site ]; @@ -43,7 +44,9 @@ flake = pkgs.hakyllProject.flake {}; - hakyll-site = flake.packages."ssg:exe:hakyll-site"; + executable = "ssg:exe:hakyll-site"; + + hakyll-site = flake.packages.${executable}; website = pkgs.stdenv.mkDerivation { name = "website"; @@ -64,7 +67,7 @@ "${pkgs.glibcLocales}/lib/locale/locale-archive"; buildPhase = '' - ${hakyll-site}/bin/hakyll-site build --verbose + ${flake.packages.${executable}}/bin/hakyll-site build --verbose ''; installPhase = '' diff --git a/ssg/ssg.cabal b/ssg/ssg.cabal index 6bbad66..47cea1f 100644 --- a/ssg/ssg.cabal +++ b/ssg/ssg.cabal @@ -1,4 +1,4 @@ -cabal-version: 2.4 +cabal-version: 3.6 name: ssg version: 0.1.0.0 @@ -7,13 +7,23 @@ license: BSD-3-Clause license-file: LICENSE executable hakyll-site + default-language: Haskell2010 main-is: Main.hs hs-source-dirs: src - build-depends: base >= 4.8 - , hakyll >= 4.14 + build-depends: base == 4.* + , hakyll == 4.15.* , filepath >= 1.0 , pandoc >= 2.11 - , slugger >= 0.1.0.1 - , text >= 1.2 && < 1.3 - ghc-options: -Wall -threaded - default-language: Haskell2010 + , slugger >= 0.1.0.2 + , text >= 1 && < 3 + ghc-options: -Wall + -Wcompat + -Widentities + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wpartial-fields + -Wredundant-constraints + -O2 + -threaded + -rtsopts + -with-rtsopts=-N From aed54002c1952955fb971f4196f61269635f1d0d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 01:09:34 +0000 Subject: [PATCH 28/32] chore(deps): bump cachix/install-nix-action from 25 to 26 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c86011d..7807726 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v25 + uses: cachix/install-nix-action@v26 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 57c672f5284cff9f43ea62ccb7dfc215c9bdfca3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 00:29:40 +0000 Subject: [PATCH 29/32] chore(deps): bump cachix/install-nix-action from 26 to 27 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 26 to 27. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v26...V27) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7807726..b8947ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v26 + uses: cachix/install-nix-action@V27 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 93c6f56205c4a256306b928bdeb4af8cd81517fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 00:03:31 +0000 Subject: [PATCH 30/32] --- updated-dependencies: - dependency-name: cachix/cachix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8947ee..bb01806 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= - name: Build with cachix - uses: cachix/cachix-action@v14 + uses: cachix/cachix-action@v15 with: name: hakyll-nix-template authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} From 32317abf5fd112f14de0445d4d0dfac8cd8fd546 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:01:51 +0000 Subject: [PATCH 31/32] chore(deps): bump cachix/install-nix-action from V27 to 28 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 28. This release includes the previously tagged commit. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb01806..4373289 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@V27 + uses: cachix/install-nix-action@V28 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | From 39e5b8b61f93174c7c2e6cf3144e3a79bde9ab9f Mon Sep 17 00:00:00 2001 From: Evelyn Alicke Date: Sat, 28 Sep 2024 09:45:02 +0200 Subject: [PATCH 32/32] move ci to forgejo --- .forgejo/workflows/main.yml | 35 ++++++++++++++++++++++ .github/FUNDING.yml | 3 -- .github/dependabot.yml | 13 --------- .github/workflows/main.yml | 58 ------------------------------------- src/css/default.css | 20 +++++++++++-- src/templates/post.html | 5 ++-- 6 files changed, 56 insertions(+), 78 deletions(-) create mode 100644 .forgejo/workflows/main.yml delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/main.yml diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml new file mode 100644 index 0000000..e3658b1 --- /dev/null +++ b/.forgejo/workflows/main.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + push: + +jobs: + build-nix: + runs-on: ubuntu-latest + steps: + - run: apt-get update -y && apt-get install sudo + - uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@V28 + with: + github_access_token: ${{ secrets.GH_TOKEN }} + extra_nix_config: | + access-tokens = github.com=${{ secrets.GH_TOKEN }} + allow-import-from-derivation = true + auto-optimise-store = true + experimental-features = nix-command flakes + substituters = https://cache.nixos.org https://cache.iog.io + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= + + - name: Build with cachix + uses: cachix/cachix-action@v15 + env: + USER: $(whoami) + with: + name: hakyll-nix-template + + - run: nix build --accept-flake-config + + # TODO: Push artifact? diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index ba79d38..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -github: rpearce diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 1f97b0b..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: 2 -updates: - -- package-ecosystem: github-actions - directory: "/" - schedule: - interval: daily - time: '00:00' - timezone: UTC - open-pull-requests-limit: 10 - commit-message: - prefix: "chore" - include: "scope" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 4373289..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: CI - -on: - pull_request: - push: - -jobs: - build-nix: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install Nix - uses: cachix/install-nix-action@V28 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - allow-import-from-derivation = true - auto-optimise-store = true - experimental-features = nix-command flakes - substituters = https://cache.nixos.org https://cache.iog.io - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= - - - name: Build with cachix - uses: cachix/cachix-action@v15 - with: - name: hakyll-nix-template - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - run: nix build --accept-flake-config - - - name: Artifact pages - uses: actions/upload-artifact@v4 - with: - name: pages - path: result/dist - - deploy: - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - needs: [build-nix] - - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: pages - path: result - - - name: Deploy to GitHub Pages - if: success() - uses: crazy-max/ghaction-github-pages@v4.0.0 - with: - build_dir: result - target_branch: gh-pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/css/default.css b/src/css/default.css index 23bb11d..99baccb 100644 --- a/src/css/default.css +++ b/src/css/default.css @@ -21,6 +21,8 @@ body { font-feature-settings: "kern", "liga", "clig", "calt"; scroll-behavior: smooth; font-size: 2rem; + margin-left: 4ch; + margin-right: 4ch; } body, input, @@ -49,6 +51,20 @@ small { p { font-size: 1.8rem; } -pre.sourceCode { - padding: 2rem 1.5rem; +img, +.sourceCode { + width: max-content; + border-radius: 0.5ch; +} +pre.sourceCode { + padding: 1.5ch 3ch 1.5ch 1.5ch !important; +} +.postMetadata { + opacity: 0.6; +} +@media (prefers-color-scheme: dark) { + body { + background: black; + color: white; + } } diff --git a/src/templates/post.html b/src/templates/post.html index 4b64fd6..a8b9ef5 100644 --- a/src/templates/post.html +++ b/src/templates/post.html @@ -4,8 +4,9 @@

$title$

-
- $date$ $if(updated)$(updated: $updated$)$endif$ +