Merge pull request #100266 from jnetod/textadept-update

textadept: 10.2 -> 10.8
This commit is contained in:
Benjamin Hipple 2020-10-29 22:24:13 -04:00 committed by GitHub
commit a2aa0cbf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 19 deletions

View File

@ -1,6 +1,7 @@
{ lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkgconfig, unzip, ncurses, zip }: { lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkgconfig, unzip, ncurses, zip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "10.2"; version = "10.8";
pname = "textadept"; pname = "textadept";
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
src = fetchhg { src = fetchhg {
url = "http://foicica.com/hg/textadept"; url = "http://foicica.com/hg/textadept";
rev = "textadept_${version}"; rev = "textadept_${version}";
sha256 = "0fai8xqddkkprmbf0cf8wwgv7ccfdb1iyim30nppm2m16whkc8fl"; sha256 = "sha256-dEZSx2tuHTWYhk9q5iGlrWTAvDvKaM8HaHwXcFcv33s=";
}; };
preConfigure = preConfigure =
@ -19,10 +20,6 @@ stdenv.mkDerivation rec {
"ln -s ${fetchurl params} $PWD/src/${name}" "ln -s ${fetchurl params} $PWD/src/${name}"
) (import ./deps.nix)) + '' ) (import ./deps.nix)) + ''
# work around trying to download stuff in `make deps`
function wget() { true; }
export -f wget
cd src cd src
make deps make deps
''; '';
@ -31,12 +28,17 @@ stdenv.mkDerivation rec {
make curses make curses
''; '';
preInstall = ''
mkdir -p $out/share/applications
mkdir -p $out/share/pixmaps
'';
postInstall = '' postInstall = ''
make curses install PREFIX=$out MAKECMDGOALS=curses make curses install PREFIX=$out MAKECMDGOALS=curses
''; '';
makeFlags = [ makeFlags = [
"PREFIX=$(out)" "PREFIX=$(out) WGET=true PIXMAPS_DIR=$(out)/share/pixmaps"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,23 +1,23 @@
{ {
"542782a4df7d.zip" = { "99fa62b828ee.zip" = {
url = "http://foicica.com/hg/scintilla/archive/542782a4df7d.zip"; url = "http://foicica.com/hg/scintilla/archive/99fa62b828ee.zip";
sha256 = "1qwxxcj86z9y7ij05j60lcp1awy2c9ck0vnn9z6c732sqjza0zx5"; sha256 = "sha256-QO4iGhx72CfB1/0Pp/Qab92qm98VZn/EkrHZGndoHVc=";
}; };
"lua-5.3.5.tar.gz" = { "lua-5.3.5.tar.gz" = {
url = "http://www.lua.org/ftp/lua-5.3.5.tar.gz"; url = "http://www.lua.org/ftp/lua-5.3.5.tar.gz";
sha256 = "1b2qn2rv96nmbm6zab4l877bd4zq7wpwm8drwjiy2ih4jqzysbhc"; sha256 = "1b2qn2rv96nmbm6zab4l877bd4zq7wpwm8drwjiy2ih4jqzysbhc";
}; };
"lpeg-1.0.0.tar.gz" = { "lpeg-1.0.2.tar.gz" = {
url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.0.tar.gz"; url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz";
sha256 = "13mz18s359wlkwm9d9iqlyyrrwjc6iqfpa99ai0icam2b3khl68h"; sha256 = "sha256-SNZldgUbbHg4j6rQm3BJMJMmRYj80PJY3aqxzdShX/4=";
}; };
"v_1_6_3.zip" = { "v1_7_0_2.zip" = {
url = "https://github.com/keplerproject/luafilesystem/archive/v_1_6_3.zip"; url = "https://github.com/keplerproject/luafilesystem/archive/v1_7_0_2.zip";
sha256 = "044s125im2irb4i42nnc5shvjj25fp4vsdbzd6b0va5igj0f6h4y"; sha256 = "sha256-kXSriR8dOStCpYeyr7c3+VZez4qGDS5aK/9FeFj1hHg=";
}; };
"6435a42450c7.zip" = { "db67f8a489e8.zip" = {
url = "http://foicica.com/hg/gtdialog/archive/6435a42450c7.zip"; url = "http://foicica.com/hg/gtdialog/archive/db67f8a489e8.zip";
sha256 = "1vxn89sif3qccksb6x5iprysqhjg69g7nyxlgrg31q397dmsg1ym"; sha256 = "sha256-UIvjbDrg3jyz7t2tm4y1zzH/TG6Kqaz3LE5y2U6OHuM=";
}; };
"cdk-5.0-20150928.tgz" = { "cdk-5.0-20150928.tgz" = {
url = "http://invisible-mirror.net/archives/cdk/cdk-5.0-20150928.tgz"; url = "http://invisible-mirror.net/archives/cdk/cdk-5.0-20150928.tgz";