-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.nix
24 lines (24 loc) · 882 Bytes
/
static.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs ? import ./nixpkgs.nix
, compiler ? "ghc865"
}:
let
survey = import static-haskell-nix/survey {
normalPkgs = pkgs;
inherit compiler;
};
haskellPackages = survey.haskellPackages
.override (old: {
overrides = pkgs.lib.composeExtensions
(self: super: {
pandoc-citeproc = self.pandoc-citeproc_0_17;
pandoc-url2cite-hs = self.callPackage ./pandoc-url2cite-hs.nix {};
hakyll = pkgs.haskell.lib.doJailbreak super.hakyll;
site-gen = pkgs.haskell.lib.appendConfigureFlag
(self.callPackage site-gen/site-gen.nix {})
# Similar to https://github.com/nh2/static-haskell-nix/issues/10
"--ld-option=-Wl,--start-group --ld-option=-Wl,-lstdc++";
})
(old.overrides or (_: _: {}));
});
in
pkgs.haskell.lib.shellAware haskellPackages.site-gen