2017-06-08 09:22:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dmd, gnome3, dbus
|
2018-08-20 13:53:39 +01:00
|
|
|
, gsettings-desktop-schemas, desktop-file-utils, gettext, gtkd, libsecret
|
2019-01-25 19:42:52 +00:00
|
|
|
, glib, perlPackages, wrapGAppsHook, xdg_utils }:
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-25 19:42:52 +00:00
|
|
|
pname = "tilix";
|
2019-03-30 21:35:41 +00:00
|
|
|
version = "1.9.0";
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
2019-01-25 19:42:52 +00:00
|
|
|
rev = version;
|
2019-03-30 21:35:41 +00:00
|
|
|
sha256 = "1k8hqpq6bzmn06b4s8c257n37ghgp3fl7l9g6fy0giwk1x0ix735";
|
2017-06-08 09:22:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
autoreconfHook dmd desktop-file-utils perlPackages.Po4a pkgconfig xdg_utils
|
2017-06-08 09:22:21 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2019-03-30 21:35:41 +00:00
|
|
|
|
2018-08-20 13:53:39 +01:00
|
|
|
buildInputs = [ gnome3.dconf gettext gsettings-desktop-schemas gtkd dbus libsecret ];
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
2018-06-14 21:03:50 +01:00
|
|
|
makeFlagsArray=(
|
|
|
|
DCFLAGS='-O -inline -release -version=StdLoggerDisableTrace'
|
|
|
|
)
|
2017-06-08 09:22:21 +01:00
|
|
|
'';
|
|
|
|
|
2019-01-25 19:42:52 +00:00
|
|
|
postInstall = ''
|
2017-06-08 09:22:21 +01:00
|
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2019-01-25 19:42:52 +00:00
|
|
|
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH ":" "${libsecret}/lib")
|
|
|
|
|
2017-06-08 09:22:21 +01:00
|
|
|
substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
|
|
|
|
--replace "Exec=tilix" "Exec=$out/bin/tilix"
|
2019-03-30 21:35:41 +00:00
|
|
|
|
|
|
|
# TODO: Won't be needed after the switch to Meson
|
|
|
|
substituteInPlace $out/share/dbus-1/services/com.gexperts.Tilix.service \
|
|
|
|
--replace "/usr/bin/tilix" "$out/bin/tilix"
|
2017-06-08 09:22:21 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ midchildan ];
|
2017-06-08 09:22:21 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|