depot/third_party/nixpkgs/pkgs/applications/editors/lite-xl/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

47 lines
810 B
Nix

{ agg
, fetchFromGitHub
, Foundation
, freetype
, lib
, lua5_4
, meson
, ninja
, pcre2
, pkg-config
, reproc
, SDL2
, stdenv
}:
stdenv.mkDerivation rec {
pname = "lite-xl";
version = "2.1.1";
src = fetchFromGitHub {
owner = "lite-xl";
repo = "lite-xl";
rev = "v${version}";
sha256 = "sha256-tZ9bCazs4ygNl5RKFNUtxboaMcG8a7mIz2FuiExX1d4=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [
agg
freetype
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;
maintainers = with maintainers; [ boppyt ];
platforms = platforms.unix;
};
}