mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
82 lines
1.3 KiB
Nix
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 ];
|
|
};
|
|
}
|