2022-11-23 21:56:52 +00:00
|
|
|
{ system, lib, pkgs }:
|
|
|
|
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
|
|
pname = "fennel-ls";
|
2023-03-22 23:29:32 +00:00
|
|
|
version = "2023-02-14";
|
2022-11-23 21:56:52 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromSourcehut {
|
|
|
|
owner = "~xerool";
|
|
|
|
repo = pname;
|
|
|
|
rev = "main";
|
2023-03-22 23:29:32 +00:00
|
|
|
hash = "sha256-S/TDZcGvI2LgK7gjMWGr/yNK+9TDJhxCDR2Jja5jscU=";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|