diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a9361b..ec879f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: name: nifoc authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix build '.#fennel-luajit' + - run: nix build '.#luarocks-jsregexp' - run: nix build '.#q' build-x86_64-darwin: @@ -35,5 +36,6 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix build '.#cliclick' - run: nix build '.#fennel-luajit' + - run: nix build '.#luarocks-jsregexp' - run: nix build '.#phantomjs' - run: nix build '.#q' diff --git a/README.md b/README.md index d5461f3..8fa3557 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,6 @@ * [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2) * [cliclick](https://github.com/BlueM/cliclick) * fennel-luajit +* [luarocks-jsregexp](https://github.com/kmarius/jsregexp) * [phantomjs](https://github.com/ariya/phantomjs) * [q](https://github.com/natesales/q) diff --git a/overlay.nix b/overlay.nix index cd28003..a477fa6 100644 --- a/overlay.nix +++ b/overlay.nix @@ -7,6 +7,7 @@ in inherit (custom) agilebits-op; inherit (custom) cliclick; inherit (custom) fennel-luajit; + inherit (custom) luarocks-jsregexp; inherit (custom) phantomjs; inherit (custom) q; } diff --git a/packages.nix b/packages.nix index 32a7961..c21b00c 100644 --- a/packages.nix +++ b/packages.nix @@ -4,6 +4,7 @@ agilebits-op = import ./packages/agilebits-op.nix { inherit system lib pkgs; }; cliclick = import ./packages/cliclick.nix { inherit system lib pkgs; }; fennel-luajit = import ./packages/fennel-luajit.nix { inherit system lib pkgs; }; + luarocks-jsregexp = import ./packages/luarocks-jsregexp.nix { inherit system lib pkgs; }; phantomjs = import ./packages/phantomjs.nix { inherit system lib pkgs; }; q = import ./packages/q.nix { inherit system lib pkgs; }; } diff --git a/packages/luarocks-jsregexp.nix b/packages/luarocks-jsregexp.nix new file mode 100644 index 0000000..c30d7e7 --- /dev/null +++ b/packages/luarocks-jsregexp.nix @@ -0,0 +1,21 @@ +{ system, lib, pkgs }: + +pkgs.lua51Packages.buildLuarocksPackage rec { + pname = "jsregexp"; + version = "0.0.4"; + rockspecFilename = "./${pname}-${version}-1.rockspec"; + + src = pkgs.fetchFromGitHub { + owner = "kmarius"; + repo = pname; + rev = "c5d9a0c5924937fe92f9cfcac3ccc1e798d164d7"; + sha256 = "sha256-20GUkwoR71M5pCD4jFUPRbIoMYHzbg7W2rZxBy4SpP8="; + }; + + meta = with lib; { + description = "javascript (ECMA19) regular expressions for lua(snip)"; + homepage = "https://github.com/kmarius/jsregexp"; + license = [ licenses.mit ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + }; +}