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