2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-08-07 18:16:44 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2021-03-06 16:47:01 +01:00
|
|
|
, ldc
|
2019-12-01 00:11:47 +01:00
|
|
|
, dconf
|
2019-08-07 18:16:44 +02:00
|
|
|
, dbus
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, gtkd
|
|
|
|
, libsecret
|
|
|
|
, glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libunwind
|
2021-03-06 16:47:01 +01:00
|
|
|
, appstream
|
2020-11-13 19:54:56 +01:00
|
|
|
, nixosTests
|
2019-08-07 18:16:44 +02:00
|
|
|
}:
|
2017-06-08 10:22:21 +02:00
|
|
|
|
2021-03-06 16:47:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-25 20:42:52 +01:00
|
|
|
pname = "tilix";
|
2022-02-23 18:46:41 +01:00
|
|
|
version = "1.9.5";
|
2017-06-08 10:22:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
2021-11-11 13:08:52 +01:00
|
|
|
rev = version;
|
2022-02-23 18:46:41 +01:00
|
|
|
sha256 = "sha256-sPVL5oYDOmloRVm/nONKkC20vZc907c7ixBF6E2PQ8Y=";
|
2017-06-08 10:22:21 +02:00
|
|
|
};
|
|
|
|
|
2019-08-07 18:16:44 +02:00
|
|
|
# Default upstream else LDC fails to link
|
|
|
|
mesonBuildType = [
|
|
|
|
"debugoptimized"
|
|
|
|
];
|
|
|
|
|
2017-06-08 10:22:21 +02:00
|
|
|
nativeBuildInputs = [
|
2019-08-07 18:16:44 +02:00
|
|
|
desktop-file-utils
|
2021-03-06 16:47:01 +01:00
|
|
|
ldc
|
2019-08-07 18:16:44 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-08-07 18:16:44 +02:00
|
|
|
python3
|
2017-06-08 10:22:21 +02:00
|
|
|
wrapGAppsHook
|
2021-03-06 16:47:01 +01:00
|
|
|
appstream
|
2017-06-08 10:22:21 +02:00
|
|
|
];
|
2019-03-30 22:35:41 +01:00
|
|
|
|
2019-08-07 18:16:44 +02:00
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
gettext
|
2019-12-01 00:11:47 +01:00
|
|
|
dconf
|
2019-08-07 18:16:44 +02:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtkd
|
|
|
|
libsecret
|
|
|
|
libunwind
|
|
|
|
];
|
2017-06-08 10:22:21 +02:00
|
|
|
|
2019-08-07 18:16:44 +02:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2017-06-08 10:22:21 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
|
|
|
|
--replace "Exec=tilix" "Exec=$out/bin/tilix"
|
|
|
|
'';
|
|
|
|
|
2020-11-13 19:54:56 +01:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.tilix;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-25 20:42:52 +01:00
|
|
|
description = "Tiling terminal emulator following the Gnome Human Interface Guidelines";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gnunn1.github.io/tilix-web";
|
2017-12-05 23:20:11 +01:00
|
|
|
license = licenses.mpl20;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ midchildan ];
|
2017-06-08 10:22:21 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|