nixpkgs/pkgs/applications/misc/tint2/default.nix
José Romildo Malaquias 7f34b65005 tint2: 0.12.9 -> 0.12.10
2016-05-08 08:29:56 -03:00

46 lines
1.4 KiB
Nix

{ stdenv, fetchFromGitLab, pkgconfig, cmake, gettext, pango, cairo, glib
, pcre , imlib2, libXinerama , libXrender, libXcomposite, libXdamage, libX11
, libXrandr, gtk, libpthreadstubs , libXdmcp, librsvg
, libstartup_notification, hicolor_icon_theme, wrapGAppsHook
}:
stdenv.mkDerivation rec {
name = "tint2-${version}";
version = "0.12.10";
src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
rev = version;
sha256 = "0da28ykid84i4pw0cvgaxw0wq2yn03i68g54dzmajgsl1wvkqb0z";
};
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig cmake gettext wrapGAppsHook ];
buildInputs = [ pango cairo glib pcre imlib2 libXinerama libXrender
libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs libXdmcp
librsvg libstartup_notification hicolor_icon_theme ];
preConfigure = ''
substituteInPlace CMakeLists.txt --replace /etc $out/etc
'';
prePatch = ''
for f in ./src/tint2conf/properties.c \
./src/launcher/apps-common.c \
./src/launcher/icon-theme-common.c \
./themes/*tint2rc
do
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
done
'';
meta = {
homepage = https://gitlab.com/o9000/tint2;
license = stdenv.lib.licenses.gpl2;
description = "Simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
platforms = stdenv.lib.platforms.linux;
};
}