nixpkgs/pkgs/by-name/ti/tilda/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-11 00:55:52 +01:00
{ lib
, stdenv
2021-01-05 02:34:35 +00:00
, fetchFromGitHub
, autoreconfHook
, expat
, gettext
2023-09-11 00:55:52 +01:00
, gtk3
2021-01-05 02:34:35 +00:00
, libconfuse
2023-09-11 00:55:52 +01:00
, makeWrapper
2021-01-05 02:34:35 +00:00
, pcre2
2023-09-11 00:55:52 +01:00
, pkg-config
2021-01-05 02:34:35 +00:00
, vte
, nixosTests
2021-01-05 02:34:35 +00:00
}:
2023-09-11 00:55:52 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "tilda";
2024-02-07 05:04:37 +00:00
version = "2.0.0";
2020-04-07 14:19:21 +01:00
src = fetchFromGitHub {
owner = "lanoxx";
repo = "tilda";
2023-09-11 00:55:52 +01:00
rev = "tilda-${finalAttrs.version}";
2024-02-07 05:04:37 +00:00
hash = "sha256-Gseti810JwhYQSaGdE2KRRqnwNmthNBiFvXH9DyVpak=";
};
2023-09-11 00:55:52 +01:00
nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];
2021-01-05 02:34:35 +00:00
buildInputs = [
gettext
2023-09-11 00:55:52 +01:00
gtk3
2021-01-05 02:34:35 +00:00
libconfuse
pcre2
vte
];
2023-09-11 00:55:52 +01:00
# ugly hack for xgettext to work during build
env.LD_LIBRARY_PATH = "${lib.getLib expat}/lib";
2023-09-11 00:55:52 +01:00
# 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"
'';
passthru.tests.test = nixosTests.terminal-emulators.tilda;
2023-09-11 00:55:52 +01:00
meta = {
2020-04-07 14:19:21 +01:00
homepage = "https://github.com/lanoxx/tilda/";
description = "Gtk based drop down terminal for Linux and Unix";
mainProgram = "tilda";
2023-09-11 00:55:52 +01:00
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.AndersonTorres ];
platforms = lib.platforms.linux;
};
2023-09-11 00:55:52 +01:00
})