Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
cmake,
|
|
withQt ? true,
|
|
libsForQt5,
|
|
withCurses ? false,
|
|
ncurses,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "12.8";
|
|
pname = "textadept";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orbitalquark";
|
|
repo = "textadept";
|
|
tag = "textadept_${finalAttrs.version}";
|
|
hash = "sha256-ba5YSZaWGGEFFAbHNNXv2/a4dWrG/o5mTySCmlPauWs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ] ++ lib.optionals withQt [ libsForQt5.wrapQtAppsHook ];
|
|
|
|
buildInputs = lib.optionals withQt [ libsForQt5.qtbase ] ++ lib.optionals withCurses ncurses;
|
|
|
|
cmakeFlags =
|
|
lib.optional withQt [ "-DQT=ON" ]
|
|
++ lib.optional withCurses [
|
|
"-DCURSES=ON"
|
|
"-DQT=OFF"
|
|
];
|
|
|
|
preConfigure = ''
|
|
mkdir -p $PWD/build/_deps
|
|
|
|
''
|
|
+ lib.concatStringsSep "\n" (
|
|
lib.mapAttrsToList (
|
|
name: params: "ln -s ${fetchurl params} $PWD/build/_deps/${name}"
|
|
) (import ./deps.nix)
|
|
);
|
|
|
|
meta = {
|
|
description = "Extensible text editor based on Scintilla with Lua scripting";
|
|
homepage = "http://foicica.com/textadept";
|
|
downloadPage = "https://github.com/orbitalquark/textadept";
|
|
changelog = "https://github.com/orbitalquark/textadept/releases/tag/textadept_${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
raskin
|
|
mirrexagon
|
|
arcuru
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "textadept";
|
|
};
|
|
})
|