Merge pull request #268057 from r-ryantm/auto-update/cudatext
cudatext: 1.201.0 -> 1.201.0.2
This commit is contained in:
commit
86ff41f507
@ -38,20 +38,21 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cudatext";
|
pname = "cudatext";
|
||||||
version = "1.201.0";
|
version = "1.201.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Alexey-T";
|
owner = "Alexey-T";
|
||||||
repo = "CudaText";
|
repo = "CudaText";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-Do2JPNZtoi7zbUnJomQAZ8zR/WPB6+G051xZWmeUBP4=";
|
hash = "sha256-ke7i0eeZHEsVhtzaS0AeLQOrYE1F+ppCwjR2TWeJQPA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./proc_globdata.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace app/proc_globdata.pas \
|
substituteInPlace app/proc_globdata.pas \
|
||||||
--replace "/usr/share/cudatext" "$out/share/cudatext" \
|
--subst-var out \
|
||||||
--replace "libpython3.so" "${python3}/lib/libpython${python3.pythonVersion}.so" \
|
--subst-var-by python3 ${python3}
|
||||||
--replace "AllowProgramUpdates:= true;" "AllowProgramUpdates:= false;"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ lazarus fpc ]
|
nativeBuildInputs = [ lazarus fpc ]
|
||||||
|
30
pkgs/applications/editors/cudatext/proc_globdata.patch
Normal file
30
pkgs/applications/editors/cudatext/proc_globdata.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
diff --git i/app/proc_globdata.pas w/app/proc_globdata.pas
|
||||||
|
index d161b09c7..0fcfbdc09 100644
|
||||||
|
--- i/app/proc_globdata.pas
|
||||||
|
+++ w/app/proc_globdata.pas
|
||||||
|
@@ -1342,6 +1342,7 @@ begin
|
||||||
|
|
||||||
|
{$ifdef unix}
|
||||||
|
for Dir in [
|
||||||
|
+ '@python3@/lib',
|
||||||
|
'/usr/lib64',
|
||||||
|
'/usr/lib',
|
||||||
|
'/usr/lib/x86_64-linux-gnu'
|
||||||
|
@@ -1364,7 +1365,7 @@ var
|
||||||
|
function GetDirPrecopy: string;
|
||||||
|
begin
|
||||||
|
{$ifdef linux}
|
||||||
|
- exit('/usr/share/cudatext');
|
||||||
|
+ exit('@out@/share/cudatext');
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{$ifdef darwin}
|
||||||
|
@@ -2056,7 +2057,7 @@ begin
|
||||||
|
FindWrapAtEdge_Delay:= 350;
|
||||||
|
FindWrapAtEdge_ThemeItem:= ''; //'EdMarkedRangeBg';
|
||||||
|
|
||||||
|
- AllowProgramUpdates:= true;
|
||||||
|
+ AllowProgramUpdates:= false;
|
||||||
|
EscapeClose:= false;
|
||||||
|
EscapeCloseConsole:= true;
|
||||||
|
EscapeCloseFinder:= true;
|
Loading…
Reference in New Issue
Block a user