2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, expat
|
|
|
|
, gettext
|
|
|
|
, gtk
|
|
|
|
, libconfuse
|
|
|
|
, pcre2
|
|
|
|
, vte
|
|
|
|
, makeWrapper
|
2022-03-30 09:31:56 +00:00
|
|
|
, nixosTests
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tilda";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "1.5.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lanoxx";
|
|
|
|
repo = "tilda";
|
|
|
|
rev = "${pname}-${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "sha256-uDx28jmjNUyzJbgTJiHbjI9U5mYb9bnfl/9AjbxNUWA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
gettext
|
|
|
|
gtk
|
|
|
|
libconfuse
|
|
|
|
pcre2
|
|
|
|
vte
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
LD_LIBRARY_PATH = "${expat.out}/lib"; # ugly hack for xgettext to work during build
|
|
|
|
|
|
|
|
# The config locking scheme relies on the binary being called "tilda",
|
|
|
|
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/bin/wrapped
|
|
|
|
mv "$out/bin/tilda" "$out/bin/wrapped/tilda"
|
|
|
|
makeWrapper "$out/bin/wrapped/tilda" "$out/bin/tilda" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.tilda;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Gtk based drop down terminal for Linux and Unix";
|
|
|
|
homepage = "https://github.com/lanoxx/tilda/";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|