1
0
Fork 0
nix-overlay/packages/fennel-ls.nix

38 lines
775 B
Nix
Raw Normal View History

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-09-22 10:47:21 +00:00
version = "2023-09-18";
2022-11-23 21:56:52 +00:00
src = pkgs.fetchFromSourcehut {
owner = "~xerool";
repo = pname;
2023-09-22 10:47:21 +00:00
rev = "824525573a6299c232a0b910a960bd59a563904f";
sha256 = "sha256-qgHPXfIiIMw/hXkINgqv/OJb81TheiBBktuqrpJ+Z6s=";
2022-11-23 21:56:52 +00:00
fetchSubmodules = false;
};
buildInputs = with pkgs; [
2023-09-22 10:47:21 +00:00
luajit
2022-11-23 21:56:52 +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" ];
};
}