1
0
Fork 0

Add luarocks-jsregexp

This commit is contained in:
Daniel Kempkens 2022-08-13 21:59:51 +02:00
parent b5f9294bed
commit e9333b3072
5 changed files with 26 additions and 0 deletions

View file

@ -20,6 +20,7 @@ jobs:
name: nifoc name: nifoc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#fennel-luajit' - run: nix build '.#fennel-luajit'
- run: nix build '.#luarocks-jsregexp'
- run: nix build '.#q' - run: nix build '.#q'
build-x86_64-darwin: build-x86_64-darwin:
@ -35,5 +36,6 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#cliclick' - run: nix build '.#cliclick'
- run: nix build '.#fennel-luajit' - run: nix build '.#fennel-luajit'
- run: nix build '.#luarocks-jsregexp'
- run: nix build '.#phantomjs' - run: nix build '.#phantomjs'
- run: nix build '.#q' - run: nix build '.#q'

View file

@ -5,5 +5,6 @@
* [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2) * [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2)
* [cliclick](https://github.com/BlueM/cliclick) * [cliclick](https://github.com/BlueM/cliclick)
* fennel-luajit * fennel-luajit
* [luarocks-jsregexp](https://github.com/kmarius/jsregexp)
* [phantomjs](https://github.com/ariya/phantomjs) * [phantomjs](https://github.com/ariya/phantomjs)
* [q](https://github.com/natesales/q) * [q](https://github.com/natesales/q)

View file

@ -7,6 +7,7 @@ in
inherit (custom) agilebits-op; inherit (custom) agilebits-op;
inherit (custom) cliclick; inherit (custom) cliclick;
inherit (custom) fennel-luajit; inherit (custom) fennel-luajit;
inherit (custom) luarocks-jsregexp;
inherit (custom) phantomjs; inherit (custom) phantomjs;
inherit (custom) q; inherit (custom) q;
} }

View file

@ -4,6 +4,7 @@
agilebits-op = import ./packages/agilebits-op.nix { inherit system lib pkgs; }; agilebits-op = import ./packages/agilebits-op.nix { inherit system lib pkgs; };
cliclick = import ./packages/cliclick.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; }; 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; }; phantomjs = import ./packages/phantomjs.nix { inherit system lib pkgs; };
q = import ./packages/q.nix { inherit system lib pkgs; }; q = import ./packages/q.nix { inherit system lib pkgs; };
} }

View file

@ -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" ];
};
}