Compare commits
10 commits
c4e6ce786f
...
db82708a89
Author | SHA1 | Date | |
---|---|---|---|
db82708a89 | |||
87aa3e87e7 | |||
89e67b85f6 | |||
bbdf547e54 | |||
6765cb4251 | |||
2cbdc61ddf | |||
4b3f1fcd82 | |||
7e32231d23 | |||
60bdb93b5c | |||
d7dcb2cdd8 |
2
LICENSE
2
LICENSE
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
25
release.nix
25
release.nix
|
@ -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;
|
||||
};
|
||||
|
|
4
site.hs
4
site.hs
|
@ -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"
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue