nixpkgs/pkgs/applications/misc/tilix/default.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

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