From c0316aaf8453db7ddeaaa5e362b26cf2a81bfe42 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Sat, 11 Jun 2016 11:54:31 -0700 Subject: [PATCH] mlterm: init at 3.3.8 A multi-lingual terminal that supports REGIS and SIXEL graphics --- pkgs/applications/misc/mlterm/default.nix | 38 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/misc/mlterm/default.nix diff --git a/pkgs/applications/misc/mlterm/default.nix b/pkgs/applications/misc/mlterm/default.nix new file mode 100644 index 000000000000..cfcff9554e7d --- /dev/null +++ b/pkgs/applications/misc/mlterm/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, pkgconfig, libX11, gdk_pixbuf, cairo, libXft, gtk2, fribidi }: + +stdenv.mkDerivation rec { + name = "mlterm-${version}"; + version = "3.3.8"; + + src = fetchurl { + url = "https://downloads.sourceforge.net/project/mlterm/01release/${name}/${name}.tar.gz"; + sha256 = "088pgxynzxxii7wdmjp2fdkxydirx4k05588zkhlzalkb5l8ji1i"; + }; + + buildInputs = [ pkgconfig libX11 gdk_pixbuf cairo libXft gtk2 fribidi ]; + + preConfigure = '' + sed -ie 's#-L/usr/local/lib -R/usr/local/lib##g' \ + xwindow/libtype/Makefile.in \ + main/Makefile.in \ + java/Makefile.in \ + tool/mlimgloader/Makefile.in \ + tool/registobmp/Makefile.in \ + tool/mlconfig/Makefile.in + sed -ie 's;cd ..srcdir. && rm -f ...lang..gmo.*;;g' tool/mlconfig/po/Makefile.in.in + ''; + + configureFlags = [ + "--with-imagelib=gdk-pixbuf" + "--with-type-engines=cairo,xft,xcore" + "--with-x" + "--enable-ind" + ]; + + meta = with stdenv.lib; { + homepage = https://sourceforge.net/projects/mlterm/; + license = licenses.bsd2; + maintainers = [ maintainers.vrthra ]; + platforms = with platforms; linux ++ darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 318d77c09d1b..ab86cb6805db 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14868,6 +14868,8 @@ in xterm = callPackage ../applications/misc/xterm { }; + mlterm = callPackage ../applications/misc/mlterm { }; + finalterm = callPackage ../applications/misc/finalterm { }; roxterm = callPackage ../applications/misc/roxterm {