forked from eskimor/purescript-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
51 lines (41 loc) · 1.32 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
48
49
50
51
{
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;
# systems = ["x86_64-linux" "x86_64-darwin"];
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, ... }: {
haskellProjects.default = {
packages = {
purescript-bridge.root = ./.;
example.root = ./example;
};
basePackages = pkgs.haskellPackages;
# Dependency overrides go here. See https://haskell.flake.page/dependency
# source-overrides = { };
# overrides = self: super: { };
devShell = {
enable = true;
mkShellArgs = {
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.zlib.out}/lib:LD_LIBRARY_PATH
'';
};
tools = hp: {
inherit (pkgs)
purescript
spago
zlib;
};
hlsCheck.enable = false;
};
};
packages.default = self'.packages.example;
};
};
}