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

75 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, python3
, pkgconfig
, dmd
2019-12-01 00:11:47 +01:00
, dconf
, dbus
, gsettings-desktop-schemas
, desktop-file-utils
, gettext
, gtkd
, libsecret
, glib
, wrapGAppsHook
, libunwind
}:
2017-06-08 10:22:21 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "tilix";
2019-10-07 20:33:49 +02:00
version = "unstable-2019-10-02";
2017-06-08 10:22:21 +02:00
src = fetchFromGitHub {
owner = "gnunn1";
repo = "tilix";
2019-10-07 20:33:49 +02:00
rev = "ffcd31e3c0e1a560ce89468152d8726065e8fb1f";
sha256 = "1bzv7xiqhyblz1rw8ln4zpspmml49vnshn1zsv9di5q7kfgpqrgq";
2017-06-08 10:22:21 +02:00
};
# Default upstream else LDC fails to link
mesonBuildType = [
"debugoptimized"
];
2017-06-08 10:22:21 +02:00
nativeBuildInputs = [
desktop-file-utils
dmd
meson
ninja
pkgconfig
python3
2017-06-08 10:22:21 +02:00
wrapGAppsHook
];
buildInputs = [
dbus
gettext
2019-12-01 00:11:47 +01:00
dconf
gsettings-desktop-schemas
gtkd
libsecret
libunwind
];
2017-06-08 10:22:21 +02:00
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
2017-06-08 10:22:21 +02:00
'';
preFixup = ''
substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
--replace "Exec=tilix" "Exec=$out/bin/tilix"
'';
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 worldofpeace ];
2017-06-08 10:22:21 +02:00
platforms = platforms.linux;
};
}