forked from etiennejf/plutus-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
110 lines (105 loc) · 2.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# NOTE: This flake is only provided as interface to `bitte` and shouldn't be used otherwise
#
# Occasionally building flake builds will segfault. The workaround for this is to
# disable the garbage collector `GC_DONT_GC=1 nix build .#web-ghc-server
#
# In case you are not sure if you should be using this flake, the answer is: No.
{
description = "plutus-apps flake for pinning sources and bitte deployments";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
# We intentionally import nixpkgs and haskell.nix as non-flakes, to match the
# flake-free normal build workflow exactly.
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixpkgs-unstable";
flake = false;
};
haskell-nix = {
url = "github:input-output-hk/haskell.nix";
flake = false;
};
cardano-repo-tool = {
url = "github:input-output-hk/cardano-repo-tool";
flake = false;
};
easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};
flake-compat = {
url = "github:input-output-hk/flake-compat/fixes";
flake = false;
};
gitignore-nix = {
url = "github:hercules-ci/gitignore.nix";
flake = false;
};
hackage-nix = {
url = "github:input-output-hk/hackage.nix";
flake = false;
};
haskell-language-server = {
# Pinned to a release
url = "github:haskell/haskell-language-server?ref=1.5.1";
flake = false;
};
iohk-nix = {
url = "github:input-output-hk/iohk-nix";
flake = false;
};
npmlock2nix = {
url = "github:tweag/npmlock2nix";
flake = false;
};
plutus-core = {
url = "github:input-output-hk/plutus";
flake = false;
};
pre-commit-hooks-nix = {
url = "github:cachix/pre-commit-hooks.nix";
flake = false;
};
spago2nix = {
url = "github:justinwoo/spago2nix";
flake = false;
};
sphinxcontrib-haddock = {
url = "github:michaelpj/sphinxcontrib-haddock";
flake = false;
};
stackage-nix = {
url = "github:input-output-hk/stackage.nix";
flake = false;
};
web-common = {
url = "github:input-output-hk/purescript-web-common";
flake = false;
};
};
outputs = { self, flake-utils, ... }@inputs:
(flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
let
topLevel = import ./. {
inherit system;
sources = inputs;
};
in
{
packages = topLevel.bitte-packages;
legacyPackages = topLevel;
}));
nixConfig = {
extra-substituters = [
"https://cache.iog.io"
"https://hydra.iohk.io"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
allow-import-from-derivation = true;
accept-flake-config = true;
};
}