Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

New Shelley Staging Environments and Testnet #4193

Merged
merged 3 commits into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ let
inherit nixTools cardanoConfig gitrev;
version = nixTools.nix-tools._raw.cardano-sl.identifier.version;
};
explorerFrontend = pkgs.callPackage ./explorer/frontend {
inherit gitrev;
cardano-sl-explorer = nixTools.nix-tools.exes.cardano-sl-explorer;
};
faucetFrontend = pkgs.callPackage ./faucet/frontend { };
# Currently the only acceptance tests here are to sync the wallet
# against mainnet and testnet.
acceptanceTests = let
Expand All @@ -62,6 +67,7 @@ let
};
in commonLib.forEnvironments mkTest;
in {
inherit pkgs acceptanceTests daedalus-bridge tests cardanoConfig;
inherit pkgs acceptanceTests daedalus-bridge tests
cardanoConfig faucetFrontend explorerFrontend;
inherit (nixTools) nix-tools;
} // scripts
22 changes: 22 additions & 0 deletions explorer/frontend/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@
with import ../../lib.nix;

let
# Removes files within a Haskell source tree which won't change the
# result of building the package.
# This is so that cached build products can be used whenever possible.
# It also applies the lib.cleanSource filter from nixpkgs which
# removes VCS directories, emacs backup files, etc.
cleanSourceTree = src:
if (builtins.typeOf src) == "path"
then cleanSourceWith {
filter = with pkgs.stdenv;
name: type: let baseName = baseNameOf (toString name); in ! (
# Filter out cabal build products.
baseName == "dist" || baseName == "dist-newstyle" ||
baseName == "cabal.project.local" ||
lib.hasPrefix ".ghc.environment" baseName ||
# Filter out stack build products.
lib.hasPrefix ".stack-work" baseName ||
# Filter out files which are commonly edited but don't
# affect the cabal build.
lib.hasSuffix ".nix" baseName
);
src = cleanSource src;
} else src;
src = cleanSourceWith {
src = cleanSourceTree ./.;
filter = with stdenv;
Expand Down
Loading