at 18.03-beta 65 lines 2.0 kB view raw
1{ stdenv, lib, fetchFromGitHub, makeWrapper 2, pkgconfig, cmake, libxml2, vala_0_26, intltool, libmx, gnome3, gtk3, gtk-doc 3, keybinder3, clutter-gtk, libnotify 4, libxkbcommon, xorg, udev 5, bashInteractive 6}: 7 8with stdenv.lib; 9 10stdenv.mkDerivation { 11 name = "finalterm-git-2014-11-15"; 12 13 src = fetchFromGitHub { 14 owner = "p-e-w"; 15 repo = "finalterm"; 16 rev = "39b078b2a96a5c3c9e74f92b1929f383d220ca8b"; 17 sha256 = "14viln5nabr39lafg1lzf6ydibz1h5d9346drp435ljxc6wsh21i"; 18 }; 19 20 nativeBuildInputs = [ pkgconfig cmake intltool makeWrapper ]; 21 buildInputs = [ 22 vala_0_26 gtk3 gnome3.gnome-common gnome3.libgee 23 gtk-doc clutter-gtk libmx keybinder3 libxml2 libnotify 24 xorg.libpthreadstubs xorg.libXdmcp xorg.libxshmfence 25 libxkbcommon 26 ] ++ optionals stdenv.isLinux [ udev ]; 27 28 preConfigure = '' 29 substituteInPlace data/org.gnome.finalterm.gschema.xml \ 30 --replace "/bin/bash" "${bashInteractive}/bin/bash" 31 32 cmakeFlagsArray=( 33 -DMINIMAL_FLAGS=ON 34 ) 35 ''; 36 37 postInstall = '' 38 mkdir -p $out/share/gsettings-schemas/$name 39 mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/ 40 ''; 41 42 postFixup = '' 43 wrapProgram "$out/bin/finalterm" \ 44 --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ 45 --prefix GIO_EXTRA_MODULES : "${getLib gnome3.dconf}/lib/gio/modules" \ 46 --prefix XDG_DATA_DIRS : "${gnome3.defaultIconTheme}/share:${gnome3.gtk.out}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" 47 ''; 48 49 meta = { 50 homepage = http://finalterm.org; 51 description = "A new breed of terminal emulator"; 52 longDescription = '' 53 Final Term is a new breed of terminal emulator. 54 55 It goes beyond mere emulation and understands what is happening inside the shell it is hosting. This allows it to offer features no other terminal can, including: 56 57 - Semantic text menus 58 - Smart command completion 59 - GUI terminal controls 60 ''; 61 license = licenses.gpl3Plus; 62 maintainers = [ maintainers.cstrahan ]; 63 platforms = platforms.linux; 64 }; 65}