blob: ead8307251351f5dc10d033b5a41d3dadf6e290f (
plain) (
blame)
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
48
|
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, lib, config, ... }: {
haskellProjects.default = {
projectRoot = builtins.toString (lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./src
./specs
./chelleport.cabal
];
});
packages = {};
settings = {};
devShell = {
# tools = hp: { fourmolu = hp.fourmolu; ghcid = null; };
hlsCheck.enable = pkgs.stdenv.isDarwin;
};
autoWire = [ "packages" "apps" "checks" ];
};
packages.default = self'.packages.chelleport;
apps.default = self'.apps.chelleport;
devShells.default = pkgs.mkShell {
inputsFrom = [
config.haskellProjects.default.outputs.devShell
];
packages = with pkgs; [
just
haskellPackages.hspec-golden
];
};
};
};
}
|