Skip to content

Commit

Permalink
feat(packages): Add validator-ejector package
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNikov committed Oct 16, 2023
1 parent 3a3b0d3 commit c25a7cc
Show file tree
Hide file tree
Showing 9 changed files with 7,751 additions and 4,323 deletions.
1 change: 1 addition & 0 deletions .yarn/plugins/yarn-plugin-nixify.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/yarn-plugin-nixify.cjs
spec: "https://raw.githubusercontent.com/stephank/yarn-plugin-nixify/main/dist/yarn-plugin-nixify.js"
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
# imports = [./packages];
imports = [./packages];
systems = [
"x86_64-linux"
"aarch64-linux"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
],
"testEnvironment": "node"
},
"packageManager": "yarn@3.6.4"
"packageManager": "yarn@3.6.4",
"bin": "dist/src/index.js"
}
18 changes: 18 additions & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{inputs, ...}: {
perSystem = {
lib,
inputs',
system,
...
}: let
inherit (inputs.mcl-blockchain.inputs) crane;
inherit (inputs'.mcl-blockchain.legacyPackages) nix2container pkgs-with-rust-overlay;
pkgs = pkgs-with-rust-overlay;
inherit (pkgs) callPackage rust-bin runCommandLocal writeScript;
validator-ejector = callPackage ./validator-ejector {};
in {
legacyPackages = {
inherit validator-ejector;
};
};
}
15 changes: 15 additions & 0 deletions packages/validator-ejector/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{pkgs ? import <nixpkgs> {}}: let
project =
pkgs.callPackage ../../yarn-project.nix {
nodejs = pkgs.nodejs-18_x;
} {
src = pkgs.lib.cleanSource ../..;
};
in
project.overrideAttrs (oldAttrs: {
name = "validator-ejector";
buildInputs = oldAttrs.buildInputs ++ [pkgs.python3];
buildPhase = ''
yarn build
'';
})
734 changes: 734 additions & 0 deletions yarn-project.nix

Large diffs are not rendered by default.

Loading

0 comments on commit c25a7cc

Please sign in to comment.