forked from IntersectMBO/plutus-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.nix
45 lines (41 loc) · 1.59 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 = "f6d4db733c4e47ee11683c343b440552f59beff7";
sha256 = "0gb3zyv3q5v5sd8r29s02yc0brwq5a01is9c0n528391n2r8g1yy";
})
{ };
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 = "70372da0b4b1a6ca797f4699c91a271700580f6c";
sha256 = "102pj525ysvj27h9nb8gidxm1cmwp8vpdyfnpwm1ywz3zkpk2mjp";
})
{ };
# 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;
}