diff options
Diffstat (limited to 'pkgs/applications/editors/textadept/default.nix')
-rw-r--r-- | pkgs/applications/editors/textadept/default.nix | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/applications/editors/textadept/default.nix b/pkgs/applications/editors/textadept/default.nix index c2b82321d4e..47a7445bd7f 100644 --- a/pkgs/applications/editors/textadept/default.nix +++ b/pkgs/applications/editors/textadept/default.nix @@ -1,6 +1,9 @@ -{ lib, stdenv, fetchFromGitHub, fetchurl, cmake, qtbase, wrapQtAppsHook }: +{ lib, stdenv, fetchFromGitHub, fetchurl, cmake +, withQt ? true, qtbase, wrapQtAppsHook +, withCurses ? false, ncurses +}: stdenv.mkDerivation rec { - version = "12.0"; + version = "12.1"; pname = "textadept"; src = fetchFromGitHub { @@ -8,15 +11,19 @@ stdenv.mkDerivation rec { owner = "orbitalquark"; repo = "textadept"; rev = "textadept_${version}"; - sha256 = "sha256-KziVN0Fl/IvSnIJKK5s7UikXi3iP5mTauP0YxffKy9c="; + sha256 = "sha256-ce7U/GR/4zkjnRN3fx3FLecc9vuvFqCONy275SWnpNc="; }; - nativeBuildInputs = [ cmake wrapQtAppsHook ]; - buildInputs = [ qtbase ]; + nativeBuildInputs = [ cmake ] + ++ lib.optionals withQt [ wrapQtAppsHook ]; - cmakeFlags = [ - "CMAKE_INSTALL_PREFIX=build/install" - ]; + buildInputs = + lib.optionals withQt [ qtbase ] + ++ lib.optionals withCurses ncurses; + + cmakeFlags = + lib.optional withQt [ "-DQT=ON" ] + ++ lib.optional withCurses [ "-DCURSES=ON" "-DQT=OFF"]; preConfigure = '' mkdir -p $PWD/build/_deps @@ -30,7 +37,7 @@ stdenv.mkDerivation rec { description = "An extensible text editor based on Scintilla with Lua scripting."; homepage = "http://foicica.com/textadept"; license = licenses.mit; - maintainers = with maintainers; [ raskin mirrexagon patricksjackson ]; + maintainers = with maintainers; [ raskin mirrexagon arcuru ]; platforms = platforms.linux; }; } |