2023-12-29 16:20:46 +09:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
2021-08-30 04:25:51 -07:00
|
|
|
freetype,
|
|
|
|
lib,
|
2022-11-04 16:22:33 +09:00
|
|
|
lua5_4,
|
2021-08-30 04:25:51 -07:00
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pcre2,
|
|
|
|
pkg-config,
|
|
|
|
SDL2,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lite-xl";
|
2024-12-10 08:01:02 +01:00
|
|
|
version = "2.1.7";
|
2021-08-30 04:25:51 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lite-xl";
|
|
|
|
repo = "lite-xl";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2024-12-10 08:01:02 +01:00
|
|
|
hash = "sha256-Ig0XDxnll/zruAwWHwuXiqumBXgAPxuK0E1ELupvcXo=";
|
2021-08-30 04:25:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2025-04-14 09:29:14 -04:00
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
lua5_4
|
|
|
|
pcre2
|
|
|
|
SDL2
|
|
|
|
];
|
2025-04-01 20:10:43 +02:00
|
|
|
|
2023-12-29 16:20:46 +09:00
|
|
|
mesonFlags = [
|
|
|
|
"-Duse_system_lua=true"
|
|
|
|
];
|
|
|
|
|
2021-08-30 04:25:51 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight text editor written in Lua";
|
|
|
|
homepage = "https://github.com/lite-xl/lite-xl";
|
|
|
|
license = licenses.mit;
|
2023-03-21 07:30:59 +09:00
|
|
|
maintainers = with maintainers; [ sefidel ];
|
2021-08-30 04:25:51 -07:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "lite-xl";
|
2021-08-30 04:25:51 -07:00
|
|
|
};
|
|
|
|
}
|