This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
67 lines (49 loc) · 1.76 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
63
64
65
66
67
{
description = "Marlowe support for IOG's Contract-Lambda";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
haskell-nix.url = "github:input-output-hk/haskell.nix";
nixpkgs.follows = "haskell-nix/nixpkgs-2205";
CHaP = {
url = "github:input-output-hk/cardano-haskell-packages?ref=repo";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, haskell-nix, CHaP }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
overlays = [ haskell-nix.overlay
(final: prev: {
marlowe-lambda =
final.haskell-nix.project' {
inputMap = {
"https://input-output-hk.github.io/cardano-haskell-packages" = CHaP;
};
src = ./.;
compiler-nix-name = "ghc8107";
shell.tools = {
cabal = {};
ghcid = {};
haskell-language-server = {};
hie-bios = {};
pointfree = {};
};
shell.buildInputs = with pkgs; [
pkgs.haskellPackages.hlint # FIXME: Move to "shell.tools".
];
};
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskell-nix) config; };
flake = pkgs.marlowe-lambda.flake {
};
in
flake // {
defaultPackage = flake.packages."marlowe-lambda:exe:marlowe-lambda";
hydraJobs = {
marlowe-lambda = flake.packages."marlowe-lambda:exe:marlowe-lambda";
marlowe-pipe = flake.packages."marlowe-lambda:exe:marlowe-pipe";
};
}
);
}