2017-06-08 10:22:21 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dmd, gnome3, dbus
|
2018-08-20 14:53:39 +02:00
|
|
|
, gsettings-desktop-schemas, desktop-file-utils, gettext, gtkd, libsecret
|
2017-06-08 10:22:21 +02:00
|
|
|
, perlPackages, wrapGAppsHook, xdg_utils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tilix-${version}";
|
2018-09-12 22:57:25 +02:00
|
|
|
version = "1.8.5";
|
2017-06-08 10:22:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
|
|
|
rev = "${version}";
|
2018-09-12 22:57:25 +02:00
|
|
|
sha256 = "1ixhkssz0xn3x75n2iw6gd3hka6bgmgwfgbvblbjhhx8gcpbw3s7";
|
2017-06-08 10:22:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
autoreconfHook dmd desktop-file-utils perlPackages.Po4a pkgconfig xdg_utils
|
2017-06-08 10:22:21 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2018-08-20 14:53:39 +02:00
|
|
|
buildInputs = [ gnome3.dconf gettext gsettings-desktop-schemas gtkd dbus libsecret ];
|
2017-06-08 10:22:21 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
2018-06-14 22:03:50 +02:00
|
|
|
makeFlagsArray=(
|
|
|
|
PERL5LIB="${perlPackages.Po4a}/lib/perl5"
|
|
|
|
DCFLAGS='-O -inline -release -version=StdLoggerDisableTrace'
|
|
|
|
)
|
2017-06-08 10:22:21 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = with gnome3; ''
|
|
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
2018-08-20 14:53:39 +02:00
|
|
|
|
|
|
|
wrapProgram $out/bin/tilix \
|
|
|
|
--prefix LD_LIBRARY_PATH ":" "${libsecret}/lib"
|
2017-06-08 10:22:21 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
|
|
|
|
--replace "Exec=tilix" "Exec=$out/bin/tilix"
|
2017-08-19 09:37:27 +02:00
|
|
|
sed -i '/^DBusActivatable=/d' $out/share/applications/com.gexperts.Tilix.desktop
|
2017-06-08 10:22:21 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tiling terminal emulator following the Gnome Human Interface Guidelines.";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://gnunn1.github.io/tilix-web;
|
2017-12-05 23:20:11 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ midchildan ];
|
2017-06-08 10:22:21 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|