2023-05-10 23:04:05 +00:00
|
|
|
{ pkgs, lib }:
|
2022-11-23 21:56:52 +00:00
|
|
|
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
|
|
pname = "fennel-ls";
|
2023-07-23 16:21:08 +00:00
|
|
|
version = "2023-07-20";
|
2022-11-23 21:56:52 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromSourcehut {
|
|
|
|
owner = "~xerool";
|
|
|
|
repo = pname;
|
2023-07-23 16:21:08 +00:00
|
|
|
rev = "e7c642e12a15c6d452559414ee1890b30f4e8406";
|
|
|
|
sha256 = "00afmrkd7hszh91axva6vgp15jxsgvfazgign26r8b48cwdf1x64";
|
2022-11-23 21:56:52 +00:00
|
|
|
fetchSubmodules = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
lua
|
|
|
|
];
|
|
|
|
|
2022-11-23 22:06:03 +00:00
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs fennel
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
2022-11-23 21:56:52 +00:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|