2016-09-16 16:40:19 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoconf
|
|
|
|
, libX11, gdk_pixbuf, cairo, libXft, gtk3, vte, fribidi, libssh2
|
|
|
|
}:
|
2016-06-11 20:54:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mlterm-${version}";
|
2016-09-16 16:40:19 +02:00
|
|
|
version = "3.7.2";
|
2016-06-11 20:54:31 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-20 07:25:25 +02:00
|
|
|
url = "mirror://sourceforge/project/mlterm/01release/${name}/${name}.tar.gz";
|
2016-09-16 16:40:19 +02:00
|
|
|
sha256 = "1b24w8hfck1ylfkdz9z55vlmsb36q9iyfr0i9q9y98dfk0f0rrw8";
|
2016-06-11 20:54:31 +02:00
|
|
|
};
|
|
|
|
|
2016-09-16 16:40:19 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig autoconf ];
|
|
|
|
buildInputs = [
|
|
|
|
libX11 gdk_pixbuf.dev cairo libXft gtk3 vte fribidi libssh2
|
|
|
|
];
|
2016-06-11 20:54:31 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -ie 's#-L/usr/local/lib -R/usr/local/lib##g' \
|
|
|
|
xwindow/libtype/Makefile.in \
|
|
|
|
main/Makefile.in \
|
2016-09-16 16:40:19 +02:00
|
|
|
tool/mlfc/Makefile.in \
|
2016-06-11 20:54:31 +02:00
|
|
|
tool/mlimgloader/Makefile.in \
|
2016-09-16 16:40:19 +02:00
|
|
|
tool/mlconfig/Makefile.in \
|
|
|
|
xwindow/libotl/Makefile.in
|
|
|
|
sed -ie 's;cd ..srcdir. && rm -f ...lang..gmo.*;;g' \
|
|
|
|
tool/mlconfig/po/Makefile.in.in
|
2016-06-11 20:54:31 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2016-09-16 16:40:19 +02:00
|
|
|
"--with-x=yes"
|
|
|
|
"--with-gtk=3.0"
|
2016-06-11 20:54:31 +02:00
|
|
|
"--with-imagelib=gdk-pixbuf"
|
2016-09-16 16:40:19 +02:00
|
|
|
"--with-gui=xlib"
|
2016-06-11 20:54:31 +02:00
|
|
|
"--with-type-engines=cairo,xft,xcore"
|
|
|
|
"--enable-ind"
|
2016-09-16 16:40:19 +02:00
|
|
|
"--enable-fribidi"
|
|
|
|
"--with-tools=mlclient,mlconfig,mlcc,mlterm-menu,mlimgloader,registobmp,mlfc"
|
|
|
|
"--disable-utmp"
|
2016-06-11 20:54:31 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://sourceforge.net/projects/mlterm/;
|
|
|
|
license = licenses.bsd2;
|
2016-09-16 16:40:19 +02:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2016-06-13 03:36:27 +02:00
|
|
|
platforms = with platforms; linux;
|
2016-06-11 20:54:31 +02:00
|
|
|
};
|
|
|
|
}
|