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 Mar 12, 2024
1 parent dca2c4f commit afc606a
Show file tree
Hide file tree
Showing 8 changed files with 7,738 additions and 4,324 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
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
perSystem = {pkgs, ...}: let
perSystem = {
pkgs,
self',
...
}: let
nodejs = pkgs.nodejs_20;
yarn = pkgs.yarn.override {inherit nodejs;};
in {
devShells.default = pkgs.mkShellNoCC {
packages = [nodejs yarn];
packages = [nodejs yarn self'.packages.validator-ejector];
};

packages.validator-ejector = pkgs.callPackage ./packages/validator-ejector {};
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"
}
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.

10,425 changes: 6,104 additions & 4,321 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit afc606a

Please sign in to comment.