nixpkgs/pkgs/applications/misc/tint2/default.nix
José Romildo Malaquias 8e43e833f5 tint2: 16.7 -> 17.0
2021-04-29 16:17:25 -03:00

82 lines
1.3 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, pkg-config
, cmake
, gettext
, cairo
, pango
, pcre
, glib
, imlib2
, gtk3
, libXinerama
, libXrender
, libXcomposite
, libXdamage
, libX11
, libXrandr
, librsvg
, libpthreadstubs
, libXdmcp
, libstartup_notification
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "tint2";
version = "17.0";
src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
rev = version;
sha256 = "1gy5kki7vqrj43yl47cw5jqwmj45f7a8ppabd5q5p1gh91j7klgm";
};
nativeBuildInputs = [
pkg-config
cmake
gettext
wrapGAppsHook
];
buildInputs = [
cairo
pango
pcre
glib
imlib2
gtk3
libXinerama
libXrender
libXcomposite
libXdamage
libX11
libXrandr
librsvg
libpthreadstubs
libXdmcp
libstartup_notification
];
cmakeFlags = [
"-Ddocdir=share/doc/${pname}"
];
postPatch = ''
for f in ./src/launcher/apps-common.c \
./src/launcher/icon-theme-common.c
do
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
done
'';
meta = with lib; {
homepage = "https://gitlab.com/o9000/tint2";
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}