1
0
Fork 0

Add fennel-ls

This commit is contained in:
Daniel Kempkens 2022-11-23 22:56:52 +01:00
parent 1b64474c90
commit be8fc244ac
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 37 additions and 0 deletions

View file

@ -19,6 +19,7 @@ jobs:
with: with:
name: nifoc name: nifoc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#fennel-ls'
- run: nix build '.#luarocks-jsregexp' - run: nix build '.#luarocks-jsregexp'
- run: nix build '.#q' - run: nix build '.#q'
@ -34,6 +35,7 @@ jobs:
name: nifoc name: nifoc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#cliclick' - run: nix build '.#cliclick'
- run: nix build '.#fennel-ls'
- run: nix build '.#luarocks-jsregexp' - run: nix build '.#luarocks-jsregexp'
- run: nix build '.#phantomjs' - run: nix build '.#phantomjs'
- run: nix build '.#q' - run: nix build '.#q'

View file

@ -4,6 +4,7 @@
* [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-ls](https://git.sr.ht/~xerool/fennel-ls)
* [luarocks-jsregexp](https://github.com/kmarius/jsregexp) * [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

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

View file

@ -3,6 +3,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-ls = import ./packages/fennel-ls.nix { inherit system lib pkgs; };
luarocks-jsregexp = import ./packages/luarocks-jsregexp.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; };

32
packages/fennel-ls.nix Normal file
View file

@ -0,0 +1,32 @@
{ system, lib, pkgs }:
pkgs.stdenv.mkDerivation rec {
pname = "fennel-ls";
version = "2022-11-11";
src = pkgs.fetchFromSourcehut {
owner = "~xerool";
repo = pname;
rev = "main";
sha256 = "sha256-mYOAlSCixlWzykPeLcGyTzWksDAJjblkYwI0k1GuYvE=";
fetchSubmodules = false;
};
buildInputs = with pkgs; [
lua
];
dontStrip = true;
installPhase = ''
mkdir -p $out/bin
cp fennel-ls $out/bin
'';
meta = with lib; {
description = "A language server for fennel";
homepage = "https://git.sr.ht/~xerool/fennel-ls";
license = licenses.mit;
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
};
}