2019-08-07 17:16:44 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, pkgconfig
|
|
|
|
, dmd
|
|
|
|
, gnome3
|
|
|
|
, dbus
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, gtkd
|
|
|
|
, libsecret
|
|
|
|
, glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libunwind
|
2019-08-20 01:57:45 +01:00
|
|
|
, hicolor-icon-theme
|
2019-08-07 17:16:44 +01:00
|
|
|
}:
|
2017-06-08 09:22:21 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-01-25 19:42:52 +00:00
|
|
|
pname = "tilix";
|
2019-08-07 17:16:44 +01:00
|
|
|
version = "unstable-2019-08-03";
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
2019-08-07 17:16:44 +01:00
|
|
|
rev = "09ec4e8e113703ca795946d8d2a83091e7b741e4";
|
|
|
|
sha256 = "1vvp6l25xygzhbhscg8scik8y59nl8a92ri024ijk0c0lclga05m";
|
2017-06-08 09:22:21 +01:00
|
|
|
};
|
|
|
|
|
2019-08-07 17:16:44 +01:00
|
|
|
# Default upstream else LDC fails to link
|
|
|
|
mesonBuildType = [
|
|
|
|
"debugoptimized"
|
|
|
|
];
|
|
|
|
|
2017-06-08 09:22:21 +01:00
|
|
|
nativeBuildInputs = [
|
2019-08-07 17:16:44 +01:00
|
|
|
desktop-file-utils
|
|
|
|
dmd
|
2019-08-20 01:57:45 +01:00
|
|
|
hicolor-icon-theme # for setup-hook
|
2019-08-07 17:16:44 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
2017-06-08 09:22:21 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2019-03-30 21:35:41 +00:00
|
|
|
|
2019-08-07 17:16:44 +01:00
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
gettext
|
|
|
|
gnome3.dconf
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtkd
|
|
|
|
libsecret
|
|
|
|
libunwind
|
|
|
|
];
|
2017-06-08 09:22:21 +01:00
|
|
|
|
2019-08-07 17:16:44 +01:00
|
|
|
patches = [
|
|
|
|
# Depends on libsecret optionally
|
|
|
|
# https://github.com/gnunn1/tilix/pull/1745
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gnunn1/tilix/commit/e38dd182bfb92419d70434926ef9c0530189aab8.patch";
|
|
|
|
sha256 = "1ws4iyzi67crzlp9p7cw8jr752b3phcg5ymx5aj0bh6321g38kfk";
|
|
|
|
})
|
|
|
|
];
|
2017-06-08 09:22:21 +01:00
|
|
|
|
2019-08-07 17:16:44 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2017-06-08 09:22:21 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
|
|
|
|
--replace "Exec=tilix" "Exec=$out/bin/tilix"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-25 19:42:52 +00:00
|
|
|
description = "Tiling terminal emulator following the Gnome Human Interface Guidelines";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://gnunn1.github.io/tilix-web;
|
2017-12-05 22:20:11 +00:00
|
|
|
license = licenses.mpl20;
|
2019-08-07 17:16:44 +01:00
|
|
|
maintainers = with maintainers; [ midchildan worldofpeace ];
|
2017-06-08 09:22:21 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|