mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:26:02 +00:00
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dmd, gnome3, dbus
|
|
, gsettings-desktop-schemas, desktop-file-utils, gettext, gtkd, libsecret
|
|
, perlPackages, wrapGAppsHook, xdg_utils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tilix-${version}";
|
|
version = "1.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gnunn1";
|
|
repo = "tilix";
|
|
rev = "${version}";
|
|
sha256 = "05x2nyyb5w3122j90g0f7lh9jl7xi1nk176sl01vl2ks7zar00dq";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook dmd desktop-file-utils perlPackages.Po4a pkgconfig xdg_utils
|
|
wrapGAppsHook
|
|
];
|
|
buildInputs = [ gnome3.dconf gettext gsettings-desktop-schemas gtkd dbus libsecret ];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(
|
|
PERL5LIB="${perlPackages.Po4a}/lib/perl5"
|
|
DCFLAGS='-O -inline -release -version=StdLoggerDisableTrace'
|
|
)
|
|
'';
|
|
|
|
postInstall = with gnome3; ''
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
wrapProgram $out/bin/tilix \
|
|
--prefix LD_LIBRARY_PATH ":" "${libsecret}/lib"
|
|
'';
|
|
|
|
|
|
preFixup = ''
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|