Compare commits

...

10 commits

Author SHA1 Message Date
Fiscal Velvet Poet db82708a89
nixos: bumped to HEAD of 23.05
resolves #7
2023-08-24 20:01:30 +10:00
Fiscal Velvet Poet 87aa3e87e7
nixos: bumped to HEAD of 22.11
resolves #3
2023-08-24 17:55:27 +10:00
Fiscal Velvet Poet 89e67b85f6
date: update to 2023
resolves #2
2023-03-24 22:38:00 +10:00
Fiscal Velvet Poet bbdf547e54
gitea: add the tea CLI interface
resolves #4
2023-03-24 14:45:35 +10:00
Fiscal Velvet Poet 6765cb4251
nixos: bumped to HEAD of 22.05 2022-06-29 18:06:29 +10:00
Fiscal Velvet Poet 2cbdc61ddf
hakyll: updated to v4.15 2022-06-29 17:06:07 +10:00
Fiscal Velvet Poet 4b3f1fcd82
nixos: bumped to HEAD of 21.11 2022-06-29 16:52:22 +10:00
Fiscal Velvet Poet 7e32231d23
niv: updated to HEAD of master 2022-06-29 14:55:10 +10:00
Fiscal Velvet Poet 60bdb93b5c
site: set baseurl to https 2021-11-16 20:04:45 +10:00
Fiscal Velvet Poet d7dcb2cdd8
templates: corrected js path 2021-11-16 19:42:21 +10:00
6 changed files with 25 additions and 32 deletions

View file

@ -1,7 +1,7 @@
ANARCHIST LICENSE
Version 1.0, 1 May, 2021
Copyright © 2021 JFDI Collective
Copyright © 2023 JFDI Collective
This is Anarchist software, released for free use by individuals and
organizations that do not operate by capitalist principles.

View file

@ -6,7 +6,7 @@ cabal-version: >= 1.10
executable site
main-is: site.hs
build-depends: base == 4.*
, hakyll == 4.14.*
, hakyll == 4.15.*
, containers == 0.6.*
, filepath == 1.4.*
, pandoc

View file

@ -5,22 +5,22 @@
"homepage": "https://github.com/nmattia/niv",
"owner": "nmattia",
"repo": "niv",
"rev": "dd13098d01eaa6be68237e7e38f96782b0480755",
"sha256": "1cfjdbsn0219fjzam1k7nqzkz8fb1ypab50rhyj026qbklqq2kvq",
"rev": "82e5cd1ad3c387863f0545d7591512e76ab0fc41",
"sha256": "090l219mzc0gi33i3psgph6s2pwsc8qy4lyrqjdj4qzkvmaj65a7",
"type": "tarball",
"url": "https://github.com/nmattia/niv/archive/dd13098d01eaa6be68237e7e38f96782b0480755.tar.gz",
"url": "https://github.com/nmattia/niv/archive/82e5cd1ad3c387863f0545d7591512e76ab0fc41.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
"branch": "nixos-21.05",
"branch": "nixos-23.05",
"description": "Nix Packages collection",
"homepage": "",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9e86f5f7a19db6da2445f07bafa6694b556f9c6d",
"sha256": "0i2j7bf6jq3s13n12xahramami0n6zn1mksqgi01k7flpgyymcck",
"rev": "a16f7eb56e88c8985fcc6eb81dabd6cade4e425a",
"sha256": "0a0dnbsbblh4wps0lzzxv3gfphscv6bqjc77lkr58xkzcijjdlv2",
"type": "tarball",
"url": "https://github.com/nixos/nixpkgs/archive/9e86f5f7a19db6da2445f07bafa6694b556f9c6d.tar.gz",
"url": "https://github.com/nixos/nixpkgs/archive/a16f7eb56e88c8985fcc6eb81dabd6cade4e425a.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}

View file

@ -1,9 +1,5 @@
let
sources = import ./nix/sources.nix;
in
{ compiler ? "ghc8104"
, pkgs ? import sources.nixpkgs { }
}:
let sources = import ./nix/sources.nix;
in { compiler ? "ghc902", pkgs ? import sources.nixpkgs { } }:
let
inherit (pkgs.lib.trivial) flip pipe;
@ -11,10 +7,8 @@ let
haskellPackages = pkgs.haskell.packages.${compiler}.override {
overrides = hpNew: hpOld: {
hakyll =
pipe
hpOld.hakyll
[ (flip appendPatch ./hakyll.patch)
hakyll = pipe hpOld.hakyll [
(flip appendPatch ./hakyll.patch)
(flip appendConfigureFlags [ "-f" "watchServer" "-f" "previewServer" ])
];
@ -25,18 +19,17 @@ let
};
project = haskellPackages.jfdic-web;
in
{
in {
project = project;
shell = haskellPackages.shellFor {
packages = p: with p; [
project
];
packages = p: with p; [ project ];
buildInputs = with haskellPackages; [
ghcid # GHCi based IDE
hlint # or ormolu
pkgs.niv # Nix dependency management
pkgs.niv
pkgs.tea # Gitea official CLI client
zlib
];
withHoogle = true;
};

View file

@ -134,12 +134,12 @@ siteCtx =
constField "site-url" "https://jfdic.org" `mappend`
constField "tagline" "liberation, autonomy, privacy" `mappend`
constField "site-title" "JFDI Collective" `mappend`
constField "copy-year" "2021" `mappend`
constField "copy-year" "2023" `mappend`
constField "github-repo" "https://source.jfdic.org/jfdic/jfdic-web" `mappend`
defaultContext
baseCtx =
constField "baseurl" "http://jfdic.org"
constField "baseurl" "https://jfdic.org"
--------------------------------------------------------------------------------

View file

@ -27,7 +27,7 @@
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<script src='$baseurl$/public/js/script.js'></script>
<script src='$baseurl$/js/script.js'></script>
</body>