2017-06-08 09:22:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dmd, gnome3, dbus
|
2018-02-25 02:23:58 +00:00
|
|
|
, gsettings-desktop-schemas, libsecret, desktop-file-utils, gettext, gtkd
|
2017-06-08 09:22:21 +01:00
|
|
|
, perlPackages, wrapGAppsHook, xdg_utils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tilix-${version}";
|
2017-11-04 07:02:45 +00:00
|
|
|
version = "1.7.1";
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnunn1";
|
|
|
|
repo = "tilix";
|
|
|
|
rev = "${version}";
|
2017-11-04 07:02:45 +00:00
|
|
|
sha256 = "0x0bnb26hjvxmvvd7c9k8fw97gcm3z5ssr6r8x90xbyyw6h58hhh";
|
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
|
|
|
|
];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gnome3.dconf gettext gsettings-desktop-schemas gtkd dbus ];
|
2017-06-08 09:22:21 +01:00
|
|
|
|
|
|
|
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 08:37:27 +01:00
|
|
|
sed -i '/^DBusActivatable=/d' $out/share/applications/com.gexperts.Tilix.desktop
|
2017-06-08 09:22:21 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|