-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
39 lines (36 loc) · 1.22 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
{
description = "ITEA";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs/master";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
myintervals = pkgs.fetchFromGitHub {
owner = "folivetti";
repo = "intervals";
rev = "8e93d157875eb4b9ebc452d19f256ade3561edf8";
sha256 = "sha256-JfN1EsWyQhxoe6BJVEG49OBUctNODqrtOeFdYxUHWKA=";
};
config = {
packageOverrides = pkgs: {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
ghc = pkgs.haskell.packages.ghc8107.override {
overrides = self: super: {
mltool = pkgs.haskell.lib.dontCheck super.mltool;
intervals = super.callCabal2nix "intervals" myintervals {};
};
};
};
};
};
};
pkgs = import nixpkgs {
inherit system config;
};
drv = pkgs.haskell.packages.ghc.callCabal2nixWithOptions "ITEA" ./. "--no-check" {};
in {
defaultPackage = drv;
devShell = drv.env;
});
}