2021-01-21 17:00:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
glib,
|
|
|
|
ncurses,
|
|
|
|
}:
|
2015-05-24 16:55:47 +00:00
|
|
|
|
2009-11-04 22:38:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "libvterm";
|
|
|
|
version = "0.99.7";
|
2009-11-04 22:38:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 13:21:29 +00:00
|
|
|
url = "mirror://sourceforge/libvterm/${pname}-${version}.tar.gz";
|
2009-11-04 22:38:26 +00:00
|
|
|
sha256 = "10gaqygmmwp0cwk3j8qflri5caf8vl3f7pwfl2svw5whv8wkn0k2";
|
|
|
|
};
|
|
|
|
|
2022-11-19 09:32:17 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/include $out/lib
|
2009-11-04 22:38:26 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-19 09:32:17 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "gcc" "${stdenv.cc.targetPrefix}cc" \
|
|
|
|
--replace "ldconfig" "" \
|
|
|
|
--replace "/usr" "$out"
|
|
|
|
|
|
|
|
makeFlagsArray+=("PKG_CFG=`${stdenv.cc.targetPrefix}pkg-config --cflags glib-2.0`")
|
2009-11-04 22:38:26 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-19 09:32:17 +00:00
|
|
|
# For headers
|
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-11-19 09:32:17 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2009-11-04 22:38:26 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://libvterm.sourceforge.net/";
|
2009-11-04 22:38:26 +00:00
|
|
|
description = "Terminal emulator library to mimic both vt100 and rxvt";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-05-27 19:56:04 +00:00
|
|
|
platforms = platforms.linux;
|
2009-11-04 22:38:26 +00:00
|
|
|
};
|
|
|
|
}
|