mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
Added TODO messages in comments
This commit is contained in:
parent
652e92b806
commit
bb83ccf125
@ -1,53 +1,32 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
|
||||
|
||||
{ lib, stdenv, fetchFromGitHub, fetchurl, cmake, qtbase, wrapQtAppsHook }:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "11.4";
|
||||
version = "11.4.9"; # TODO: THAT'S A DUMMY VERSION NUMBER; CHANGE TO 12.0 WHEN RELEASED.
|
||||
pname = "textadept";
|
||||
|
||||
nativeBuildInputs = [ pkg-config unzip zip ];
|
||||
buildInputs = [
|
||||
gtk2 ncurses glib
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
name = "textadept11";
|
||||
owner = "orbitalquark";
|
||||
repo = "textadept";
|
||||
rev = "textadept_${version}";
|
||||
sha256 = "sha256-1we2NC4N8oY4QmmqIIWGSpTBuLx3MEFkZK+BjmNEfD0=";
|
||||
# rev = "textadept_${version}";
|
||||
rev = "96f58f1fa34fa50feead22df21b34412c1327da1"; # TODO: WHEN PACKAGE RELEASE, UNCOMMENT PREVIOUS LINE AND REMOVE THIS ONE.
|
||||
sha256 = "sha256-a8ZmGDee75HOyE0W3yFFPNjLWBz5WXktmt9B+61bCy8=";
|
||||
};
|
||||
|
||||
preConfigure =
|
||||
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
|
||||
"ln -s ${fetchurl params} $PWD/src/${name}"
|
||||
) (import ./deps.nix)) + ''
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
||||
buildInputs = [ qtbase ];
|
||||
|
||||
cd src
|
||||
make deps
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
make curses
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
mkdir -p $out/share/pixmaps
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
make curses install PREFIX=$out MAKECMDGOALS=curses
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"WGET=true"
|
||||
"PIXMAPS_DIR=$(out)/share/pixmaps"
|
||||
"GTK2=1"
|
||||
cmakeFlags = [
|
||||
"CMAKE_INSTALL_PREFIX=build/install"
|
||||
];
|
||||
|
||||
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 = with lib; {
|
||||
description = "An extensible text editor based on Scintilla with Lua scripting.";
|
||||
homepage = "http://foicica.com/textadept";
|
||||
|
27
pkgs/applications/editors/textadept/deps.nix
generated
27
pkgs/applications/editors/textadept/deps.nix
generated
@ -1,21 +1,19 @@
|
||||
{
|
||||
"scintilla524.tgz" = {
|
||||
url = "https://www.scintilla.org/scintilla524.tgz";
|
||||
sha256 = "sha256-Su8UiMmkOxcuBat2JWYEnhNdG5HKnV1fn1ClnJhazGY=";
|
||||
"scintilla530.tgz" = {
|
||||
url = "https://www.scintilla.org/scintilla530.tgz";
|
||||
sha256 = "sha256-/VJg9W3kTMnV4tkAhuxv/nCWq73JG8nBxF9Sic1AQHs=";
|
||||
};
|
||||
"lexilla510.tgz" = {
|
||||
url = "https://www.scintilla.org/lexilla510.tgz";
|
||||
sha256 = "sha256-azWVJ0AFSYZxuFTPV73uwiVJZvNxcS/POnFtl6p/P9g=";
|
||||
};
|
||||
"9088723504b19f8611b66c119933a4dc7939d7b8.zip" = {
|
||||
url =
|
||||
"https://github.com/orbitalquark/scintillua/archive/9088723504b19f8611b66c119933a4dc7939d7b8.zip";
|
||||
sha256 = "sha256-V2t1kt6+SpZQvQSzLhh8n+WiAnA32SRVFnrbTaJrHRo=";
|
||||
"scinterm_4.1.zip" = {
|
||||
url = "https://github.com/orbitalquark/scinterm/archive/scinterm_4.1.zip";
|
||||
sha256 = "sha256-pdgf2m5Bmmgh470G2Cx62z414YBq10qqe1+80ZGFypI=";
|
||||
};
|
||||
"475d8d43f3418590c28bd2fb07ee9229d1fa2d07.zip" = {
|
||||
url =
|
||||
"https://github.com/orbitalquark/scinterm/archive/475d8d43f3418590c28bd2fb07ee9229d1fa2d07.zip";
|
||||
sha256 = "sha256-lNMK0RFcOLg9RRE5a6VelhSzUYVl5TiAiXcje2JOedE=";
|
||||
"scintillua_6.1.zip" = {
|
||||
url = "https://github.com/orbitalquark/scintillua/archive/scintillua_6.1.zip";
|
||||
sha256 = "sha256-h2hr+SK+ahR0+KXe6HxObt1jJXZWJHA6yXuyX/JfNIo=";
|
||||
};
|
||||
"lua-5.4.4.tar.gz" = {
|
||||
url = "http://www.lua.org/ftp/lua-5.4.4.tar.gz";
|
||||
@ -29,11 +27,6 @@
|
||||
url = "https://github.com/keplerproject/luafilesystem/archive/v1_8_0.zip";
|
||||
sha256 = "sha256-46a+ynqKkFIu7THbbM3F7WWkM4JlAMaGJ4TidnG54Yo=";
|
||||
};
|
||||
"444af9ca8a73151dbf759e6676d1035af469f01a.zip" = {
|
||||
url =
|
||||
"https://github.com/orbitalquark/gtdialog/archive/444af9ca8a73151dbf759e6676d1035af469f01a.zip";
|
||||
sha256 = "sha256-7AkX7OWXJtzKq3h4uJeLzHpf6mrsz67SXtPvmyA5xxg=";
|
||||
};
|
||||
"cdk-5.0-20200923.tgz" = {
|
||||
url = "http://invisible-mirror.net/archives/cdk/cdk-5.0-20200923.tgz";
|
||||
sha256 = "sha256-AH9d6IDLLuvYVW335M2Gc9XmTJlwFH7uaSOoFMKfqu0=";
|
||||
@ -43,3 +36,5 @@
|
||||
sha256 = "sha256-aUW9PEqqg9qD2AoEXFVj2k7dfQN0xiwNNa7AnrMBRgA=";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
@ -1487,7 +1487,8 @@ mapAliases ({
|
||||
tex-gyre-pagella-math = throw "'tex-gyre-pagella-math' has been renamed to/replaced by 'tex-gyre-math.pagella'"; # Converted to throw 2022-02-22
|
||||
tex-gyre-schola-math = throw "'tex-gyre-schola-math' has been renamed to/replaced by 'tex-gyre-math.schola'"; # Converted to throw 2022-02-22
|
||||
tex-gyre-termes-math = throw "'tex-gyre-termes-math' has been renamed to/replaced by 'tex-gyre-math.termes'"; # Converted to throw 2022-02-22
|
||||
textadept11 = textadept; # Added 2022-06-07
|
||||
textadept11 = throw "textadept11 has been removed. Please use textadept12 instead"; # Added 2022-12-23 TODO: UPDATE THE DATE
|
||||
textadept12 = textadept; # Added 2022-12-23 TODO: UPDATE THE DATE
|
||||
tftp_hpa = throw "'tftp_hpa' has been renamed to/replaced by 'tftp-hpa'"; # Converted to throw 2022-02-22
|
||||
thunderbird-68 = throw "Thunderbird 68 reached end of life with its final release 68.12.0 on 2020-08-25";
|
||||
thunderbird-bin-68 = thunderbird-68;
|
||||
|
@ -12189,7 +12189,7 @@ with pkgs;
|
||||
|
||||
texstudio = libsForQt5.callPackage ../applications/editors/texstudio { };
|
||||
|
||||
textadept = callPackage ../applications/editors/textadept { };
|
||||
textadept = libsForQt5.callPackage ../applications/editors/textadept { };
|
||||
|
||||
texworks = libsForQt5.callPackage ../applications/editors/texworks { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user