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
840 B
Nix
Raw Normal View History

{ agg
, fetchFromGitHub
, Foundation
, freetype
, lib
2022-11-04 07:22:33 +00:00
, lua5_4
, meson
, ninja
, pcre2
, pkg-config
, reproc
, SDL2
, stdenv
}:
stdenv.mkDerivation rec {
pname = "lite-xl";
2023-01-01 00:58:11 +00:00
version = "2.1.1";
src = fetchFromGitHub {
owner = "lite-xl";
repo = "lite-xl";
rev = "v${version}";
2023-01-01 00:58:11 +00:00
sha256 = "sha256-tZ9bCazs4ygNl5RKFNUtxboaMcG8a7mIz2FuiExX1d4=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [
agg
freetype
2022-11-04 07:22:33 +00:00
lua5_4
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;
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";
};
}