Skip to content

Commit

Permalink
Update web-common nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Nov 23, 2021
1 parent 29de5fa commit 3d2ed6c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions default.nix
Expand Up @@ -32,16 +32,13 @@ in
rec {
inherit pkgs marlowe;

inherit (marlowe) web-ghc;
inherit (marlowe) webCommon web-ghc;

inherit (haskell.packages.marlowe.components.exes) marlowe-pab;

# TODO This stuff should probably be exposed as an overlay in the plutus-apps if
# we switch to flakes.
webCommon = pkgs.callPackage sources.web-common { inherit (marlowe.lib) gitignore-nix; };
webCommonPlutus = pkgs.callPackage (sources.plutus-apps + "/web-common-plutus") { inherit (marlowe.lib) gitignore-nix; };
webCommonPlayground = pkgs.callPackage (sources.plutus-apps + "/web-common-playground") { inherit (marlowe.lib) gitignore-nix; };

webCommonMarlowe = pkgs.callPackage ./web-common-marlowe { inherit (marlowe.lib) gitignore-nix; };

marlowe-playground = pkgs.recurseIntoAttrs rec {
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion marlowe-dashboard-client/default.nix
Expand Up @@ -47,7 +47,7 @@ let
spagoPackages = pkgs.callPackage ./spago-packages.nix { };
})
(_: {
WEB_COMMON_SRC = webCommon;
WEB_COMMON_SRC = webCommon.cleanSrc;
});
in
{
Expand Down
2 changes: 1 addition & 1 deletion marlowe-playground-client/default.nix
Expand Up @@ -59,7 +59,7 @@ let
spagoPackages = pkgs.callPackage ./spago-packages.nix { };
})
(_: {
WEB_COMMON_SRC = webCommon;
WEB_COMMON_SRC = webCommon.cleanSrc;
WEB_COMMON_PLAYGROUND_SRC = webCommonPlayground;
});
in
Expand Down
3 changes: 3 additions & 0 deletions nix/pkgs/default.nix
Expand Up @@ -103,6 +103,8 @@ let
# ghc web service
web-ghc = pkgs.callPackage (sources.plutus-apps + "/nix/pkgs/web-ghc") { inherit haskell; extraPackagesFun = ps: [ ps.marlowe ]; };

webCommon = pkgs.callPackage sources.web-common { inherit gitignore-nix; };

# combined haddock documentation for all public plutus libraries
plutus-haddock-combined =
let
Expand Down Expand Up @@ -142,4 +144,5 @@ in
inherit web-ghc;
inherit easyPS plutus-haddock-combined;
inherit lib;
inherit webCommon;
}
2 changes: 1 addition & 1 deletion shell.nix
Expand Up @@ -120,7 +120,7 @@ haskell.project.shellFor {
# Point to some source dependencies
+ ''
export ACTUS_TEST_DATA_DIR=${packages.actus-tests}/tests/
export WEB_COMMON_SRC="${webCommon}"
export WEB_COMMON_SRC="${webCommon.cleanSrc}"
export WEB_COMMON_PLAYGROUND_SRC="${webCommonPlayground}"
'';
}

0 comments on commit 3d2ed6c

Please sign in to comment.