Skip to content

Commit

Permalink
Nixify Repo: IOGX v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Calegari committed Oct 5, 2023
1 parent c529f6d commit 7607d1f
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 87 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.pre-commit-config.yaml
node_modules/
result
dist
17 changes: 0 additions & 17 deletions Docker.md

This file was deleted.

2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ services:

marlowe-vesting:
image: ghrc.io/input-output-hk/marlowe-vesting:latest
environment:
- MARLOWE_RT_WEBSERVER_URL=${MARLOWE_RT_WEBSERVER_URL:?err}
depends_on:
- web-server
ports:
Expand Down
7 changes: 0 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
inputs = {
iogx.url = "github:input-output-hk/iogx?ref=v4";

n2c.url = "github:nlewo/nix2container";

std = {
url = "github:divnix/std";
inputs.n2c.follows = "n2c";
};

npmlock2nix = {
url = "github:nix-community/npmlock2nix";
flake = false;
Expand Down
32 changes: 0 additions & 32 deletions nix/deploy/oci-images.nix

This file was deleted.

11 changes: 0 additions & 11 deletions nix/deploy/operables.nix

This file was deleted.

2 changes: 2 additions & 0 deletions nix/marlowe-vesting.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ let
in

npmlock2nix.v2.build {

nodejs = pkgs.nodejs-18_x;

src = lib.sourceByRegex ../. [
"^src.*"
"^public.*"
"^contract.*"
"^.env$"
"^package-lock.json$"
"^package.json$"
Expand Down
4 changes: 0 additions & 4 deletions nix/outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
devShells.default = repoRoot.nix.shell;

packages.marlowe-vesting = repoRoot.nix.marlowe-vesting;

operables = repoRoot.nix.deploy.operables;

oci-images = repoRoot.nix.deploy.oci-images;
}
]
17 changes: 3 additions & 14 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@ lib.iogx.mkShell {
welcomeMessage = "Marlowe Vesting dApp";

packages = [
pkgs.nodejs
pkgs.docker
inputs.n2c.packages.skopeo-nix2container
pkgs.nodejs-18_x
pkgs.nodejs-18_x.pkgs.webpack
pkgs.nodejs-18_x.pkgs.webpack-cli
];

shellHook = ''
export PATH="$PATH:./node_modules/.bin/:./bin"
'';

# scripts = { };
# env = { };
# name = "nix-shell";
# prompt = "$ ";

preCommit = {
shellcheck.enable = true;
shellcheck.extraOptions = "";
nixpkgs-fmt.enable = true;
nixpkgs-fmt.extraOptions = "";
};
}

0 comments on commit 7607d1f

Please sign in to comment.