nixpkgs/pkgs/applications/editors/lite-xl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
866 B
Nix
Raw Normal View History

2023-12-29 07:20:46 +00:00
{ fetchFromGitHub
, Foundation
, freetype
, lib
2022-11-04 07:22:33 +00:00
, lua5_4
, meson
, ninja
, pcre2
, pkg-config
, SDL2
, stdenv
}:
stdenv.mkDerivation rec {
pname = "lite-xl";
2024-06-29 15:37:06 +00:00
version = "2.1.5";
src = fetchFromGitHub {
owner = "lite-xl";
repo = "lite-xl";
rev = "v${version}";
2024-06-29 15:37:06 +00:00
hash = "sha256-awXcmYAvQUdFUr2vFlnBt8WTLrACREfB7J8HoSyVPTs=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [
freetype
2022-11-04 07:22:33 +00:00
lua5_4
pcre2
SDL2
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Foundation
];
2023-12-29 07:20:46 +00:00
mesonFlags = [
"-Duse_system_lua=true"
];
meta = with lib; {
description = "Lightweight text editor written in Lua";
homepage = "https://github.com/lite-xl/lite-xl";
license = licenses.mit;
2023-03-20 22:30:59 +00:00
maintainers = with maintainers; [ sefidel ];
platforms = platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "lite-xl";
};
}