nixpkgs/pkgs/applications/misc/mlterm/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2016-09-16 16:40:19 +02:00
{ stdenv, fetchurl, pkgconfig, autoconf
, libX11, gdk_pixbuf, cairo, libXft, gtk3, vte, fribidi, libssh2
}:
stdenv.mkDerivation rec {
name = "mlterm-${version}";
2016-09-16 16:40:19 +02:00
version = "3.7.2";
src = fetchurl {
url = "mirror://sourceforge/project/mlterm/01release/${name}/${name}.tar.gz";
2016-09-16 16:40:19 +02:00
sha256 = "1b24w8hfck1ylfkdz9z55vlmsb36q9iyfr0i9q9y98dfk0f0rrw8";
};
2016-09-16 16:40:19 +02:00
nativeBuildInputs = [ pkgconfig autoconf ];
buildInputs = [
libX11 gdk_pixbuf.dev cairo libXft gtk3 vte fribidi libssh2
];
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 \
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
'';
configureFlags = [
2016-09-16 16:40:19 +02:00
"--with-x=yes"
"--with-gtk=3.0"
"--with-imagelib=gdk-pixbuf"
2016-09-16 16:40:19 +02:00
"--with-gui=xlib"
"--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"
];
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 ];
platforms = with platforms; linux;
};
}