2017-03-01 11:05:23 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub
|
2014-08-27 15:06:59 +02:00
|
|
|
, pkgconfig
|
|
|
|
, autoconf, automake, intltool, gettext
|
2017-03-01 11:05:23 +01:00
|
|
|
, gtk, vte
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2017-03-01 11:05:23 +01:00
|
|
|
# "stable" or "git"
|
|
|
|
, flavour ? "stable"
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert flavour == "stable" || flavour == "git";
|
|
|
|
|
|
|
|
let
|
|
|
|
stuff =
|
|
|
|
if flavour == "stable"
|
|
|
|
then rec {
|
|
|
|
version = "0.9.9.4";
|
|
|
|
src = fetchurl {
|
2018-05-01 05:03:23 +02:00
|
|
|
url = "https://lilyterm.luna.com.tw/file/lilyterm-${version}.tar.gz";
|
2017-03-01 11:05:23 +01:00
|
|
|
sha256 = "0x2x59qsxq6d6xg5sd5lxbsbwsdvkwqlk17iw3h4amjg3m1jc9mp";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
version = "2017-01-06";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tetralet";
|
|
|
|
repo = "lilyterm";
|
|
|
|
rev = "20cce75d34fd24901c9828469d4881968183c389";
|
|
|
|
sha256 = "0am0y65674rfqy69q4qz8izb8cq0isylr4w5ychi40jxyp68rkv2";
|
|
|
|
};
|
|
|
|
};
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2017-03-01 11:05:23 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 15:06:59 +02:00
|
|
|
name = "lilyterm-${version}";
|
|
|
|
|
2017-03-01 11:05:23 +01:00
|
|
|
inherit (stuff) src version;
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ autoconf automake intltool gettext gtk vte ];
|
2014-08-27 15:06:59 +02:00
|
|
|
|
|
|
|
preConfigure = "sh autogen.sh";
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-nls"
|
|
|
|
"--enable-safe-mode"
|
|
|
|
];
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2014-09-12 07:19:53 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-27 15:06:59 +02:00
|
|
|
description = "A fast, lightweight terminal emulator";
|
|
|
|
longDescription = ''
|
2014-09-12 07:19:53 +02:00
|
|
|
LilyTerm is a terminal emulator based off of libvte that aims to be fast and lightweight.
|
2014-08-27 15:06:59 +02:00
|
|
|
'';
|
2018-05-01 05:03:23 +02:00
|
|
|
homepage = https://lilyterm.luna.com.tw/;
|
2014-09-10 20:59:54 +02:00
|
|
|
license = licenses.gpl3;
|
2018-02-12 07:18:12 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres Profpatsch ];
|
2014-09-10 20:59:54 +02:00
|
|
|
platforms = platforms.linux;
|
2014-08-27 15:06:59 +02:00
|
|
|
};
|
|
|
|
}
|