forked from graninas/beam-mysql
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (49 loc) · 1.86 KB
/
flake.nix
File metadata and controls
60 lines (49 loc) · 1.86 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
bytestring-lexing.url = "github:juspay/bytestring-lexing";
bytestring-lexing.flake = false;
## Use Juspay upstream after PR merged here https://github.com/juspay/mysql-haskell/pull/5
mysql-haskell.url = "github:arjunkathuria/mysql-haskell/GHC-927";
mysql-haskell.inputs.nixpkgs.follows = "nixpkgs";
mysql-haskell.inputs.haskell-flake.follows = "haskell-flake";
## Use Juspay upstream after PR merged - https://github.com/juspay/beam/pull/21
beam.url = "github:juspay/beam/b5f14b640110bcfab6bc86f07f864516b2d7ffd8";
beam.inputs.haskell-flake.follows = "haskell-flake";
beam.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ withSystem, ... }: {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.haskell-flake.flakeModule
];
perSystem = { self', pkgs, lib, config, ... }: {
haskellProjects.default = {
projectFlakeName = "beam-mysql";
basePackages = pkgs.haskell.packages.ghc927;
imports = [
inputs.beam.haskellFlakeProjectModules.output
inputs.mysql-haskell.haskellFlakeProjectModules.output
];
packages = {
bytestring-lexing.source = inputs.bytestring-lexing;
};
settings = {
bytestring-lexing = {
jailbreak = true;
};
mysql-haskell = {
check = false;
};
beam-mysql = {
jailbreak = true;
};
};
autoWire = [ "packages" "checks" "devShells" "apps"];
};
};
});
}