-
Notifications
You must be signed in to change notification settings - Fork 15
/
default.nix
29 lines (22 loc) · 918 Bytes
/
default.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
25
26
27
28
29
{ci ? false, haskellCompiler ? "ghc927" }:
let
# Import the Haskell.nix library,
haskell-src = import ((import ./nix/sources.nix)."haskell.nix") {};
npSrc = haskell-src.sources.nixpkgs-unstable;
npArgs = haskell-src.nixpkgsArgs;
pin = import npSrc npArgs;
haskell = pin.haskell-nix;
ciOptions = [ { packages.eventlog2html.configureFlags = [ "--ghc-option=-Werror" ]; } ];
opts = [ { packages.vault.doHaddock = false; } ];
# Instantiate a package set using the generated file.
pkgSet = haskell.cabalProject {
compiler-nix-name = haskellCompiler;
src = haskell.haskellLib.cleanGit { name = "eventlog2html"; src = ./.; };
modules = (if ci then ciOptions else []) ++ opts;
index-state = "2023-03-25T00:00:00Z";
};
site = import ./nix/site.nix { nixpkgs = pin; hspkgs = pkgSet; };
in
{ eventlog2html = pkgSet.eventlog2html.components.exes.eventlog2html ;
site = site;
}