Permalink
Browse files

fixup! WIP: Hydra builds.

  • Loading branch information...
krisajenkins committed Feb 11, 2019
1 parent 5919ece commit 440245e15f63660da839c010ce74e4c7be89b493
Showing with 23 additions and 9 deletions.
  1. +23 −9 bazel.nix
@@ -140,8 +140,8 @@ let
'';
};

bundle = pkgs.stdenv.mkDerivation {
name = "plutus-bundle";
bazelTarget = config: pkgs.stdenv.mkDerivation {
inherit (config) name buildPhase installPhase;
# XXX: hack for macosX, this flag disables bazel usage of xcode
# Note: this is set even for linux so any regression introduced by this flag
# will be caught earlier
@@ -195,20 +195,34 @@ let
ln -nfs ${nodejs} ./node-nix
ln -nfs ${yarn}/bin/yarn ./yarn-nix/bin/yarn.js
'';
};

in
{
# bundle = bazelTarget {
# name = "language-plutus-core";
# buildPhase = ''
# # bazel build --color=no --curses=no --remote_http_cache=http://34.243.81.23:80 --sandbox_debug --verbose_failures //...
# bazel build --remote_http_cache=http://34.243.81.23:80 //language-plutus-core
# bazel build --remote_http_cache=http://34.243.81.23:80 //plutus-playground/plutus-playground-server:plutus-playground-server-app
# # bazel build --remote_http_cache=http://34.243.81.23:80 //plutus-playground/plutus-playground-client:playground_bundle
# '';

# installPhase = ''
# mkdir -p $out/bin
# cp bazel-bin/language-plutus-plutus-playground/plutus-playground-server/plutus-playground-server-app $out/bin/
# '';
# };

bundle = bazelTarget {
name = "plutus-playground-server";
buildPhase = ''
# bazel build --color=no --curses=no --remote_http_cache=http://34.243.81.23:80 --sandbox_debug --verbose_failures //...
bazel build --remote_http_cache=http://34.243.81.23:80 //language-plutus-core
bazel build --remote_http_cache=http://34.243.81.23:80 //plutus-playground/plutus-playground-server:plutus-playground-server-app
bazel build --remote_http_cache=http://34.243.81.23:80 //plutus-playground/plutus-playground-client:playground_bundle
'';

installPhase = ''
mkdir -p $out/bin
cp bazel-bin/plutus-playground/plutus-playground-server/plutus-playground-server-app $out/bin/
'';
};

in
{
inherit bundle;
}

0 comments on commit 440245e

Please sign in to comment.