2021-08-30 13:25:51 +02:00
|
|
|
{ agg
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Foundation
|
|
|
|
, freetype
|
|
|
|
, lib
|
2022-11-04 08:22:33 +01:00
|
|
|
, lua5_4
|
2021-08-30 13:25:51 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, reproc
|
|
|
|
, SDL2
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lite-xl";
|
2022-11-04 08:22:33 +01:00
|
|
|
version = "2.1.0";
|
2021-08-30 13:25:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lite-xl";
|
|
|
|
repo = "lite-xl";
|
|
|
|
rev = "v${version}";
|
2022-11-04 08:22:33 +01:00
|
|
|
sha256 = "sha256-9nQFdii6SY14Cul7Ki0DUEsu75HWTCeEZtXaU6KGRiM=";
|
2021-08-30 13:25:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
agg
|
|
|
|
freetype
|
2022-11-04 08:22:33 +01:00
|
|
|
lua5_4
|
2021-08-30 13:25:51 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|