mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitLab, pkgconfig, cmake, gettext, cairo, pango, pcre
|
|
, glib, imlib2, gtk2, libXinerama, libXrender, libXcomposite, libXdamage
|
|
, libX11, libXrandr, librsvg, libpthreadstubs, libXdmcp
|
|
, libstartup_notification, hicolor-icon-theme, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tint2";
|
|
version = "16.7";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "o9000";
|
|
repo = "tint2";
|
|
rev = version;
|
|
sha256 = "1937z0kixb6r82izj12jy4x8z4n96dfq1hx05vcsvsg1sx3wxgb0";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake gettext wrapGAppsHook ];
|
|
|
|
buildInputs = [ cairo pango pcre glib imlib2 gtk2 libXinerama libXrender
|
|
libXcomposite libXdamage libX11 libXrandr librsvg libpthreadstubs
|
|
libXdmcp libstartup_notification hicolor-icon-theme ];
|
|
|
|
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 stdenv.lib; {
|
|
homepage = https://gitlab.com/o9000/tint2;
|
|
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|