forked from lidofinance/validator-ejector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(packages): Add
validator-ejector
package
- Loading branch information
1 parent
3a3b0d3
commit c25a7cc
Showing
9 changed files
with
7,751 additions
and
4,323 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
''; | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.