-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
51 lines (44 loc) · 1.48 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";
Agda.url = "github:fredins/agda";
Agda.flake = true;
};
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, ... }: {
haskellProjects.default = {
packages = {
Agda.source = inputs.Agda;
};
settings = {
Agda.check = false;
};
devShell = {
enable = true;
tools = hp: {
# Compling agda programs
zlib = pkgs.zlib;
# LLVM with assertions (requires compilation)
# libllvm = pkgs.llvmPackages_15.libllvm.override{debugVersion = true;};
libllvm = pkgs.llvmPackages_15.libllvm;
clangUseLLVM = pkgs.llvmPackages_15.clangUseLLVM;
lld_15 = pkgs.lld_15;
# Debugging
valgrind = pkgs.valgrind;
massif-visualizer = pkgs.massif-visualizer;
# Call graphs
graphviz = pkgs.graphviz;
# Logbook HTML document
pandoc = pkgs.pandoc;
};
};
};
packages.default = self'.packages.agda-llvm;
};
};
}