This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (52 loc) · 1.66 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
{
description = "Minimal package for Marlowe validator";
nixConfig = {
extra-substituters = [
"https://cache.zw3rk.com"
"https://cache.iog.io"
"https://hydra.iohk.io"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
];
allow-import-from-derivation = true;
};
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-cardano-minimal =
final.haskell-nix.project' {
inputMap = {
"https://input-output-hk.github.io/cardano-haskell-packages" = CHaP;
};
src = ./.;
compiler-nix-name = "ghc925";
shell.tools = {
cabal = {};
# haskell-language-server = {};
# hie-bios = {};
};
};
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskell-nix) config; };
flake = pkgs.marlowe-cardano-minimal.flake {
};
in
flake // {
defaultPackage = flake.packages."marlowe-cardano-minimal:lib:marlowe-cardano-minimal";
}
);
}