2018-08-06 01:36:09 +02:00
|
|
|
{ stdenv, lib, 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
|
|
|
|
, flavour ? "stable"
|
|
|
|
}:
|
|
|
|
|
2018-08-06 01:36:09 +02:00
|
|
|
assert lib.assertOneOf "flavour" flavour [ "stable" "git" ];
|
2017-03-01 11:05:23 +01:00
|
|
|
|
|
|
|
let
|
2020-03-31 22:28:16 +02:00
|
|
|
pname = "lilyterm";
|
2017-03-01 11:05:23 +01:00
|
|
|
stuff =
|
|
|
|
if flavour == "stable"
|
|
|
|
then rec {
|
|
|
|
version = "0.9.9.4";
|
|
|
|
src = fetchurl {
|
2020-03-31 22:28:16 +02:00
|
|
|
url = "https://lilyterm.luna.com.tw/file/${pname}-${version}.tar.gz";
|
2017-03-01 11:05:23 +01:00
|
|
|
sha256 = "0x2x59qsxq6d6xg5sd5lxbsbwsdvkwqlk17iw3h4amjg3m1jc9mp";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
else {
|
2020-03-31 22:28:16 +02:00
|
|
|
version = "2019-07-25";
|
2017-03-01 11:05:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tetralet";
|
2020-03-31 22:28:16 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = "faf1254f46049edfb1fd6e9191e78b1b23b9c51d";
|
|
|
|
sha256 = "054450gk237c62b677365bcwrijr63gd9xm8pv68br371wdzylz7";
|
2017-03-01 11:05:23 +01:00
|
|
|
};
|
|
|
|
};
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2017-03-01 11:05:23 +01:00
|
|
|
in
|
2020-03-31 22:28:16 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit pname;
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2017-03-01 11:05:23 +01:00
|
|
|
inherit (stuff) src version;
|
2014-08-27 15:06:59 +02:00
|
|
|
|
2020-03-31 22:28:16 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig autoconf automake intltool gettext ];
|
|
|
|
buildInputs = [ 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
|
|
|
'';
|
2020-04-01 03:11:51 +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
|
|
|
};
|
|
|
|
}
|