Permalink
Browse files

fixup! WIP: Hydra builds.

  • Loading branch information...
krisajenkins committed Feb 11, 2019
1 parent 3176fe1 commit a9543d391978bf7b399a70c7512f9f9c5d0d2d09
Showing with 14 additions and 13 deletions.
  1. +14 −13 bazel.nix
@@ -90,15 +90,15 @@ let
# will be caught earlier
# See: https://github.com/bazelbuild/bazel/issues/4231
BAZEL_USE_CPP_ONLY_TOOLCHAIN=1;

buildInputs = [
ghc
pkgs.git
pkgs.cacert
bazelNixpkgs.bazel
];


shellHook = ''
# Add nix config flags to .bazelrc.local.
#
@@ -119,12 +119,12 @@ let
echo ""
echo "common --host_platform=@io_tweag_rules_purescript//purescript/platforms:''${ARCH}_x86_64_nixpkgs"
echo "common --platforms=@io_tweag_rules_purescript//purescript/platforms:''${ARCH}_x86_64_nixpkgs"
fi
# source bazel bash completion
source ${pkgs.bazel}/share/bash-completion/completions/bazel
# link the tools bazel will import to predictable locations
mkdir -p tools
ln -nfs ${ghc} ./tools/ghc
@@ -147,9 +147,9 @@ let
# will be caught earlier
# See: https://github.com/bazelbuild/bazel/issues/4231
BAZEL_USE_CPP_ONLY_TOOLCHAIN=1;

src = plutusSrc;

buildInputs = [
ghc
pkgs.git
@@ -158,7 +158,7 @@ let
purescript
bazelNixpkgs.bazel
];

configurePhase = ''
export HOME="$NIX_BUILD_TOP"
@@ -181,7 +181,7 @@ let
echo 'common --platforms=@io_tweag_rules_purescript//purescript/platforms:linux_x86_64_nixpkgs'
) >> $BAZELRC_LOCAL
fi
# link the tools bazel will import to predictable locations
mkdir -p tools
ln -nfs ${ghc} ./tools/ghc
@@ -198,12 +198,13 @@ let

buildPhase = ''
# bazel build --color=no --curses=no --remote_http_cache=http://34.243.81.23:80 --sandbox_debug --verbose_failures //...
bazel build --color=no --curses=no --sandbox_debug --verbose_failures //language-plutus-core
bazel build --color=no --curses=no --sandbox_debug --verbose_failures //plutus-playground/plutus-playground-server:plutus-playground-server-app
bazel build --color=no --curses=no --sandbox_debug --verbose_failures --remote_http_cache=http://34.243.81.23:80 -//language-plutus-core
bazel build --color=no --curses=no --sandbox_debug --verbose_failures --remote_http_cache=http://34.243.81.23:80 -//plutus-playground/plutus-playground-server:plutus-playground-server-app
bazel build --color=no --curses=no --sandbox_debug --verbose_failures --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/
cp bazel-bin/plutus-playground/plutus-playground-server/plutus-playground-server-app $out/bin/
'';
};

0 comments on commit a9543d3

Please sign in to comment.