Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Add entrypoint for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Oct 28, 2021
1 parent a665ef0 commit f6d0667
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 10 deletions.
19 changes: 18 additions & 1 deletion flake.lock

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

33 changes: 24 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@
url = "github:tweag/npmlock2nix";
flake = false;
};

plutus-apps = {
url = "github:input-output-hk/plutus-apps";
flake = false;
};
};

outputs = { self, flake-utils, nixpkgs, npmlock2nix, gitignore-nix }:
outputs = { self, flake-utils, nixpkgs, npmlock2nix, gitignore-nix, plutus-apps }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;

Expand All @@ -24,15 +29,25 @@

overlay = final: prev: let
npmlock2nix-build = (final.callPackage npmlock2nix { }).build;

staticSite = final.callPackage (plutus-apps + "/bitte/static-site.nix") { };
in {
marlowe-website.defaultPackage = npmlock2nix-build {
src = final.gitignoreSource ./.;
installPhase = "cp -r public $out";
node_modules_mode = "copy";

node_modules_attrs = {
packageLockJson = ./package-lock.json;
packageJson = ./package.json;
marlowe-website = {
defaultPackage = final.marlowe-website.marlowe-website;

marlowe-website = npmlock2nix-build {
src = final.gitignoreSource ./.;
installPhase = "cp -r public $out";
node_modules_mode = "copy";

node_modules_attrs = {
packageLockJson = ./package-lock.json;
packageJson = ./package.json;
};
};

marlowe-website-entrypoint = staticSite {
root = final.marlowe-website.marlowe-website;
};
};
};
Expand Down

0 comments on commit f6d0667

Please sign in to comment.