2018-08-01 16:09:55 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, vte, gtk3, ncurses, wrapGAppsHook }:
|
2014-09-18 23:07:35 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "termite-${version}";
|
2017-12-19 21:12:11 +01:00
|
|
|
version = "13";
|
2014-09-18 23:07:35 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thestinger";
|
|
|
|
repo = "termite";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "02cn70ygl93ghhkhs3xdxn5b1yadc255v3yp8cmhhyzsv5027hvj";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2014-09-18 23:07:35 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
# https://github.com/thestinger/termite/pull/516
|
|
|
|
patches = [ ./url_regexp_trailing.patch ./add_errno_header.patch
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin ./remove_ldflags_macos.patch;
|
2016-06-19 10:18:30 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];
|
2014-09-18 23:07:35 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
buildInputs = [ vte gtk3 ncurses ];
|
2014-09-18 23:07:35 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook pkgconfig ];
|
2017-09-22 21:55:44 +02:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
outputs = [ "out" "terminfo" ];
|
2016-02-25 22:52:13 +01:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $terminfo/share
|
|
|
|
mv $out/share/terminfo $terminfo/share/terminfo
|
2016-02-25 22:52:13 +01:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
mkdir -p $out/nix-support
|
|
|
|
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
|
|
|
'';
|
2016-02-25 22:52:13 +01:00
|
|
|
|
2018-08-01 16:09:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple VTE-based terminal";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
homepage = https://github.com/thestinger/termite/;
|
|
|
|
maintainers = with maintainers; [ koral garbas ];
|
|
|
|
platforms = platforms.all;
|
2014-09-18 23:07:35 +02:00
|
|
|
};
|
|
|
|
}
|