2019-05-16 00:45:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, vte-ng, gtk3, ncurses, wrapGAppsHook }:
|
2014-09-18 22:07:35 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "termite-${version}";
|
2019-05-16 00:38:01 +01:00
|
|
|
version = "15";
|
2014-09-18 22:07:35 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thestinger";
|
|
|
|
repo = "termite";
|
|
|
|
rev = "v${version}";
|
2019-05-16 00:38:01 +01:00
|
|
|
sha256 = "0hp1x6lj098m3jgna274wv5dv60lnzg22297di68g4hw9djjyd2k";
|
2018-08-01 15:09:55 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2014-09-18 22:07:35 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
# https://github.com/thestinger/termite/pull/516
|
|
|
|
patches = [ ./url_regexp_trailing.patch ./add_errno_header.patch
|
2019-05-16 00:45:08 +01:00
|
|
|
# Fix off-by-one in select_text() on libvte >= 0.55.0
|
|
|
|
# Expected to be included in next release (16).
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/thestinger/termite/commit/7e9a93b421b9596f8980645a46ac2ad5468dac06.patch";
|
|
|
|
sha256 = "0vph2m5919f7w1xnc8i6z0j44clsm1chxkfg7l71nahxyfw5yh4j";
|
|
|
|
})
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin ./remove_ldflags_macos.patch;
|
2016-06-19 09:18:30 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];
|
2014-09-18 22:07:35 +01:00
|
|
|
|
2018-12-25 23:15:46 +00:00
|
|
|
buildInputs = [ vte-ng gtk3 ncurses ];
|
2014-09-18 22:07:35 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook pkgconfig ];
|
2017-09-22 20:55:44 +01:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
outputs = [ "out" "terminfo" ];
|
2016-02-25 21:52:13 +00:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $terminfo/share
|
|
|
|
mv $out/share/terminfo $terminfo/share/terminfo
|
2016-02-25 21:52:13 +00:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
mkdir -p $out/nix-support
|
|
|
|
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
|
|
|
'';
|
2016-02-25 21:52:13 +00:00
|
|
|
|
2018-08-01 15:09:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple VTE-based terminal";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
homepage = https://github.com/thestinger/termite/;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2018-08-01 15:09:55 +01:00
|
|
|
platforms = platforms.all;
|
2014-09-18 22:07:35 +01:00
|
|
|
};
|
|
|
|
}
|