2021-08-30 13:25:51 +02:00
|
|
|
{ agg
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Foundation
|
|
|
|
, freetype
|
|
|
|
, lib
|
|
|
|
, lua5_2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, reproc
|
|
|
|
, SDL2
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lite-xl";
|
2022-02-06 11:36:55 +01:00
|
|
|
version = "2.0.5";
|
2021-08-30 13:25:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lite-xl";
|
|
|
|
repo = "lite-xl";
|
|
|
|
rev = "v${version}";
|
2022-02-06 11:36:55 +01:00
|
|
|
sha256 = "sha256-7ppO5ITijhJ37OL6xlQgu1SaQ/snXDH5xJOwuXZNUVA=";
|
2021-08-30 13:25:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-11-25 07:28:16 +01:00
|
|
|
# Fixes compatibility with Lua5.2, remove patch when a new release covers this
|
|
|
|
./0001-replace-unpack-with-table-unpack.patch
|
2021-08-30 13:25:51 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
agg
|
|
|
|
freetype
|
|
|
|
lua5_2
|
|
|
|
pcre2
|
|
|
|
reproc
|
|
|
|
SDL2
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Foundation
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A lightweight text editor written in Lua";
|
|
|
|
homepage = "https://github.com/lite-xl/lite-xl";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ boppyt ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|