-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (54 loc) · 1.41 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
52
53
54
55
56
57
58
59
60
61
62
{
description = "Haskell bindings for TREXIO, the portable wave function file format";
nixConfig = {
allow-import-from-derivation = "true";
};
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs";
trexio.url = "github:TREX-CoE/trexio";
};
outputs =
{
self,
nixpkgs,
trexio,
flake-utils,
}:
let
trexioOvl = import ./nix/overlay.nix;
in
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ /*trexio.overlays.default*/ trexioOvl ];
};
in
{
packages.default = pkgs.haskellPackages.trexio-hs;
devShells.default = pkgs.haskellPackages.shellFor {
withHoogle = true;
packages = p: [ p.trexio-hs ];
buildInputs = with pkgs; [
haskell-language-server
haskellPackages.fourmolu
haskellPackages.haskell-ci
hlint
autoconf
automake
];
};
formatter = pkgs.nixfmt-rfc-style;
checks = self.packages."${system}" // {
ghc96 = pkgs.haskell.packages.ghc96.trexio-hs;
ghc98 = pkgs.haskell.packages.ghc98.trexio-hs;
ghc910 = pkgs.haskell.packages.ghc910.trexio-hs;
};
}
)
// {
overlays.default = trexioOvl;
};
}