2017-06-08 10:22:21 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dmd, gnome3, dbus
|
|
|
|
, gsettings_desktop_schemas, libsecret, desktop_file_utils, gettext, gtkd
|
|
|
|
, perlPackages, wrapGAppsHook, xdg_utils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tilix-${version}";
|
2017-08-19 08:58:59 +02:00
|
|
|
version = "1.6.4";
|
2017-06-08 10:22:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
|
|
|
rev = "${version}";
|
2017-08-19 08:58:59 +02:00
|
|
|
sha256 = "1vqi68jlbbaky1569kd4lr6p02zsiv7v2rfb8j1pzwj7gydblaac";
|
2017-06-08 10:22:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook dmd desktop_file_utils perlPackages.Po4a pkgconfig xdg_utils
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
buildInputs = [ gnome3.dconf gettext gsettings_desktop_schemas gtkd dbus ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PERL5LIB="${perlPackages.Po4a}/lib/perl5")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = with gnome3; ''
|
|
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
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-06-08 10:22:21 +02:00
|
|
|
licence = licenses.mpl20;
|
|
|
|
maintainer = with maintainers; [ midchildan ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|