hakyll: updated to v4.15
This commit is contained in:
parent
4b3f1fcd82
commit
2cbdc61ddf
|
@ -6,7 +6,7 @@ cabal-version: >= 1.10
|
||||||
executable site
|
executable site
|
||||||
main-is: site.hs
|
main-is: site.hs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, hakyll == 4.14.*
|
, hakyll == 4.15.*
|
||||||
, containers == 0.6.*
|
, containers == 0.6.*
|
||||||
, filepath == 1.4.*
|
, filepath == 1.4.*
|
||||||
, pandoc
|
, pandoc
|
||||||
|
|
24
release.nix
24
release.nix
|
@ -1,9 +1,5 @@
|
||||||
let
|
let sources = import ./nix/sources.nix;
|
||||||
sources = import ./nix/sources.nix;
|
in { compiler ? "ghc8107", pkgs ? import sources.nixpkgs { } }:
|
||||||
in
|
|
||||||
{ compiler ? "ghc8104"
|
|
||||||
, pkgs ? import sources.nixpkgs { }
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib.trivial) flip pipe;
|
inherit (pkgs.lib.trivial) flip pipe;
|
||||||
|
@ -11,10 +7,8 @@ let
|
||||||
|
|
||||||
haskellPackages = pkgs.haskell.packages.${compiler}.override {
|
haskellPackages = pkgs.haskell.packages.${compiler}.override {
|
||||||
overrides = hpNew: hpOld: {
|
overrides = hpNew: hpOld: {
|
||||||
hakyll =
|
hakyll = pipe hpOld.hakyll [
|
||||||
pipe
|
(flip appendPatch ./hakyll.patch)
|
||||||
hpOld.hakyll
|
|
||||||
[ (flip appendPatch ./hakyll.patch)
|
|
||||||
(flip appendConfigureFlags [ "-f" "watchServer" "-f" "previewServer" ])
|
(flip appendConfigureFlags [ "-f" "watchServer" "-f" "previewServer" ])
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -25,18 +19,16 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
project = haskellPackages.jfdic-web;
|
project = haskellPackages.jfdic-web;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
project = project;
|
project = project;
|
||||||
|
|
||||||
shell = haskellPackages.shellFor {
|
shell = haskellPackages.shellFor {
|
||||||
packages = p: with p; [
|
packages = p: with p; [ project ];
|
||||||
project
|
|
||||||
];
|
|
||||||
buildInputs = with haskellPackages; [
|
buildInputs = with haskellPackages; [
|
||||||
ghcid # GHCi based IDE
|
ghcid # GHCi based IDE
|
||||||
hlint # or ormolu
|
hlint # or ormolu
|
||||||
pkgs.niv # Nix dependency management
|
pkgs.niv
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
withHoogle = true;
|
withHoogle = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue