nixpkgs/pkgs/applications/misc/tint2/default.nix

82 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitLab
, pkg-config
, cmake
, gettext
, cairo
, pango
, pcre
, glib
, imlib2
2021-04-29 22:17:25 +03:00
, gtk3
, libXinerama
, libXrender
, libXcomposite
, libXdamage
, libX11
, libXrandr
, librsvg
, libpthreadstubs
, libXdmcp
, libstartup_notification
, wrapGAppsHook
2013-12-22 20:20:17 +04:00
}:
stdenv.mkDerivation rec {
pname = "tint2";
2021-08-20 00:49:00 +03:00
version = "17.0.1";
2013-12-22 20:20:17 +04:00
2016-02-28 14:57:08 +03:00
src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
2016-02-16 01:52:13 +03:00
rev = version;
2021-08-20 00:49:00 +03:00
sha256 = "sha256-yiXdG0qYcdol2pA1L9ii4XiLZyyUAl8/EJop48OLoXs=";
2013-12-22 20:20:17 +04:00
};
2016-02-28 14:57:08 +03:00
nativeBuildInputs = [
pkg-config
cmake
gettext
wrapGAppsHook
];
2016-02-28 14:57:08 +03:00
buildInputs = [
cairo
pango
pcre
glib
imlib2
2021-04-29 22:17:25 +03:00
gtk3
libXinerama
libXrender
libXcomposite
libXdamage
libX11
libXrandr
librsvg
libpthreadstubs
libXdmcp
libstartup_notification
];
2016-04-14 14:01:32 +03:00
cmakeFlags = [
"-Ddocdir=share/doc/${pname}"
];
2017-09-20 12:35:19 +03:00
postPatch = ''
2017-06-16 15:14:38 +03:00
for f in ./src/launcher/apps-common.c \
2018-09-20 19:37:33 +03:00
./src/launcher/icon-theme-common.c
2016-04-14 14:01:32 +03:00
do
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
done
'';
2013-12-22 20:20:17 +04:00
meta = with lib; {
homepage = "https://gitlab.com/o9000/tint2";
2016-05-18 12:36:27 +03:00
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";
2021-04-29 22:17:25 +03:00
license = licenses.gpl2Only;
2018-09-20 19:37:33 +03:00
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
2013-12-22 20:20:17 +04:00
};
}