Skip to content

Commit

Permalink
ci.nix: Build deployment machines
Browse files Browse the repository at this point in the history
Add a `deployent` attribute to `default.nix` and add it to `ci.nix`
so it gets build by hydra.
  • Loading branch information
gilligan committed Apr 16, 2021
1 parent 7504539 commit cd9448a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci.nix
Expand Up @@ -59,7 +59,7 @@ let
in
filterAttrsOnlyRecursive (_: drv: isBuildable drv) {
# build relevant top level attributes from default.nix
inherit (packages) docs tests plutus-playground marlowe-playground marlowe-dashboard plutus-pab;
inherit (packages) docs tests plutus-playground marlowe-playground marlowe-dashboard plutus-pab deployment;
# The haskell.nix IFD roots for the Haskell project. We include these so they won't be GCd and will be in the
# cache for users
inherit (plutus.haskell.project) roots;
Expand Down
11 changes: 11 additions & 0 deletions default.nix
Expand Up @@ -91,6 +91,17 @@ rec {

docs = import ./nix/docs.nix { inherit pkgs plutus; };

# Note: nix-build is not eager enough in evaluating `nix-build -A deployment` so
# you need to specify a specific host. On hydra `pkgs.recurseIntoAttrs` solves
# this problem
deployment = pkgs.recurseIntoAttrs (pkgs.callPackage ./deployment/morph {
plutus = {
plutus-docs = docs;
inherit plutus-pab marlowe-app marlowe-companion-app
marlowe-dashboard marlowe-playground plutus-playground web-ghc;
};
});

# This builds a vscode devcontainer that can be used with the plutus-starter project (or probably the plutus project itself).
devcontainer = import ./nix/devcontainer/plutus-devcontainer.nix { inherit pkgs plutus; };
}

0 comments on commit cd9448a

Please sign in to comment.