forked from etiennejf/plutus-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.nix
45 lines (41 loc) · 1.56 KB
/
deployment.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
{ system ? builtins.currentSystem
, enableHaskellProfiling ? false
, packages ? import ./. { inherit system enableHaskellProfiling; }
}:
let
inherit (packages) pkgs plutus-apps plutus-playground pab-nami-demo plutus-chain-index pab-cli docs webCommon;
inherit (pkgs) lib utillinux python3 nixpkgs-fmt;
inherit (plutus-apps) haskell;
# Feed cardano-wallet, cardano-cli & cardano-node to our shell.
# This is stable as it doesn't mix dependencies with this code-base;
# the fetched binaries are the "standard" builds that people test.
# This should be fast as it mostly fetches Hydra caches without building much.
cardano-wallet = import
(pkgs.fetchgit {
url = "https://github.com/input-output-hk/cardano-wallet";
rev = "a73d8c9717dc4e174745f8568d6f3fe84f0f9d76";
sha256 = "19srmc3rg8db73mfqnpdacmlpbp2x5mb4pi82mv14innhdl01jlx";
})
{ };
cardano-node = import
(pkgs.fetchgit {
url = "https://github.com/input-output-hk/cardano-node";
# A standard release compatible with the cardano-wallet commit above is always preferred.
rev = "1.35.0";
sha256 = "06arx9hv7dn3qxfy83f0b6018rxbsvh841nvfyg5w6qclm1hddj7";
})
{ };
# local build inputs ( -> ./nix/pkgs/default.nix )
localInputs = (with plutus-apps; [
cardano-node.cardano-node
cardano-wallet.cardano-wallet
plutus-chain-index
pab-cli
]);
in
haskell.project.shellFor {
nativeBuildInputs = localInputs;
# We don't currently use this, and it's a pain to materialize, and otherwise
# costs a fair bit of eval time.
withHoogle = false;
}