forked from IntersectMBO/plutus-apps
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment.nix
49 lines (45 loc) · 1.63 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
46
47
48
49
{ system ? builtins.currentSystem
, enableHaskellProfiling ? false
, packages ? import ./. { inherit system enableHaskellProfiling; }
}:
let
inherit (packages) pkgs plutus-apps 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 sources.flake-compat {
inherit pkgs;
src = builtins.fetchTree
{
type = "github";
owner = "input-output-hk";
repo = "cardano-wallet";
rev = "18a931648550246695c790578d4a55ee2f10463e";
narHash = "sha256-3Rnj/g3KLzOW5YSieqsUa9IF1Td22Eskk5KuVsOFgEQ=";
};
}).defaultNix;
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.3";
sha256 = "020fwimsm24yblr1fmnwx240wj8r3x715p89cpjgnnd8axwf32p0";
})
{ };
# 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;
}