forked from jgm/pandoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
47 lines (44 loc) · 1.39 KB
/
flake.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
description = "Pandoc development";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
nixpkgs-140774-workaround.url = "github:srid/nixpkgs-140774-workaround";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.haskell-flake.flakeModule
];
perSystem = { self', system, lib, config, pkgs, ... }: {
haskellProjects.main = {
imports = [
inputs.nixpkgs-140774-workaround.haskellFlakeProjectModules.default
];
overrides = self: super: { };
devShell = {
tools = hp: {
inherit (hp)
hlint
ormolu
weeder
stylish-haskell
ghcid;
};
hlsCheck.enable = true;
};
packages = {
pandoc.root = ./.;
pandoc-cli.root = ./pandoc-cli;
pandoc-server.root = ./pandoc-server;
pandoc-lua-engine.root = ./pandoc-lua-engine;
};
};
# Default package.
packages.default = self'.packages.pandoc;
devShells.default = self'.devShells.main;
};
};
}