From be8fc244ac7f39e267af9a4f57dd563d69228500 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 23 Nov 2022 22:56:52 +0100 Subject: [PATCH] Add fennel-ls --- .github/workflows/build.yml | 2 ++ README.md | 1 + overlay.nix | 1 + packages.nix | 1 + packages/fennel-ls.nix | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 packages/fennel-ls.nix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8f006e..9d821cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,7 @@ jobs: with: name: nifoc authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build '.#fennel-ls' - run: nix build '.#luarocks-jsregexp' - run: nix build '.#q' @@ -34,6 +35,7 @@ jobs: name: nifoc authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix build '.#cliclick' + - run: nix build '.#fennel-ls' - run: nix build '.#luarocks-jsregexp' - run: nix build '.#phantomjs' - run: nix build '.#q' diff --git a/README.md b/README.md index 6aaa2ce..8f02a69 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ * [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2) * [cliclick](https://github.com/BlueM/cliclick) +* [fennel-ls](https://git.sr.ht/~xerool/fennel-ls) * [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 de0e5d2..8fa892c 100644 --- a/overlay.nix +++ b/overlay.nix @@ -6,6 +6,7 @@ in { inherit (custom) agilebits-op; inherit (custom) cliclick; + inherit (custom) fennel-ls; inherit (custom) luarocks-jsregexp; inherit (custom) phantomjs; inherit (custom) q; diff --git a/packages.nix b/packages.nix index fb33dc0..3832b4d 100644 --- a/packages.nix +++ b/packages.nix @@ -3,6 +3,7 @@ { agilebits-op = import ./packages/agilebits-op.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; }; phantomjs = import ./packages/phantomjs.nix { inherit system lib pkgs; }; q = import ./packages/q.nix { inherit system lib pkgs; }; diff --git a/packages/fennel-ls.nix b/packages/fennel-ls.nix new file mode 100644 index 0000000..6db6315 --- /dev/null +++ b/packages/fennel-ls.nix @@ -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" ]; + }; +}