nixpkgs/pkgs/applications/misc/lilyterm/default.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, fetchFromGitHub
, pkgconfig
, autoconf, automake, intltool, gettext
, gtk, vte
, flavour ? "stable"
}:
assert lib.assertOneOf "flavour" flavour [ "stable" "git" ];
let
stuff =
if flavour == "stable"
then rec {
version = "0.9.9.4";
src = fetchurl {
2018-05-01 04:03:23 +01:00
url = "https://lilyterm.luna.com.tw/file/lilyterm-${version}.tar.gz";
sha256 = "0x2x59qsxq6d6xg5sd5lxbsbwsdvkwqlk17iw3h4amjg3m1jc9mp";
};
}
else {
version = "2017-01-06";
src = fetchFromGitHub {
owner = "Tetralet";
repo = "lilyterm";
rev = "20cce75d34fd24901c9828469d4881968183c389";
sha256 = "0am0y65674rfqy69q4qz8izb8cq0isylr4w5ychi40jxyp68rkv2";
};
};
in
stdenv.mkDerivation rec {
name = "lilyterm-${version}";
inherit (stuff) src version;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake intltool gettext gtk vte ];
preConfigure = "sh autogen.sh";
configureFlags = [
"--enable-nls"
"--enable-safe-mode"
];
2014-09-12 06:19:53 +01:00
meta = with stdenv.lib; {
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.
'';
2018-05-01 04:03:23 +01:00
homepage = https://lilyterm.luna.com.tw/;
license = licenses.gpl3;
maintainers = with maintainers; [ AndersonTorres Profpatsch ];
platforms = platforms.linux;
};
}