let's see how we go...
This commit is contained in:
parent
ba4bd84bd0
commit
b29661efb6
35 changed files with 902 additions and 2 deletions
31
generator/hpkgs.nix
Normal file
31
generator/hpkgs.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ compiler ? "ghc884"
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs.lib.trivial) flip pipe;
|
||||
inherit (pkgs.haskell.lib) appendPatch appendConfigureFlags dontCheck;
|
||||
|
||||
hakyllFlags = [ "-f" "watchServer" "-f" "previewServer" ];
|
||||
|
||||
haskellPackages = pkgs.haskell.packages.${compiler}.override {
|
||||
overrides = hpNew: hpOld: {
|
||||
hakyll =
|
||||
pipe
|
||||
hpOld.hakyll
|
||||
[
|
||||
(flip appendPatch ./hakyll.patch)
|
||||
(flip appendConfigureFlags hakyllFlags)
|
||||
];
|
||||
|
||||
my-site = hpNew.callCabal2nix "my-site" ./. {};
|
||||
|
||||
# because hakyll is marked as broken in nixpkgs
|
||||
hslua = dontCheck (hpNew.callHackage "hslua" "1.0.3.2" {});
|
||||
jira-wiki-markup = dontCheck (hpNew.callHackage "jira-wiki-markup" "1.1.4" {});
|
||||
pandoc = dontCheck (hpNew.callHackage "pandoc" "2.9.2.1" {});
|
||||
pandoc-types = dontCheck (hpNew.callHackage "pandoc-types" "1.20" {});
|
||||
};
|
||||
};
|
||||
in
|
||||
haskellPackages
|
Loading…
Add table
Add a link
Reference in a new issue