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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

91 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitLab
, fetchpatch
, pkg-config
, cmake
, gettext
, cairo
, pango
, glib
, imlib2
2021-04-29 22:17:25 +03:00
, gtk3
, libXinerama
, libXrender
, libXcomposite
, libXdamage
, libX11
, libXrandr
, librsvg
, libpthreadstubs
, libXdmcp
, libstartup_notification
, wrapGAppsHook3
2013-12-22 20:20:17 +04:00
}:
stdenv.mkDerivation rec {
pname = "tint2";
version = "17.1.3";
2013-12-22 20:20:17 +04:00
2016-02-28 14:57:08 +03:00
src = fetchFromGitLab {
owner = "nick87720z";
2016-02-28 14:57:08 +03:00
repo = "tint2";
2016-02-16 01:52:13 +03:00
rev = version;
hash = "sha256-9sEe/Gnj+FWLPbWBtfL1YlNNC12j7/KjQ40xdkaFJVQ=";
2013-12-22 20:20:17 +04:00
};
2016-02-28 14:57:08 +03:00
patches = [
# Fix crashes with glib >= 2.76
# https://patchespromptly.com/glib2/
# https://gitlab.com/nick87720z/tint2/-/issues/4
(fetchpatch {
url = "https://gitlab.com/nick87720z/tint2/uploads/7de4501a4fa4fffa5ba8bb0fa3d19f78/glib.patch";
hash = "sha256-K547KYlRkVl1s2THi3ZCRuM447EFJwTqUEBjKQnV8Sc=";
})
];
nativeBuildInputs = [
pkg-config
cmake
gettext
wrapGAppsHook3
];
2016-02-28 14:57:08 +03:00
buildInputs = [
cairo
pango
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-fail /usr/share/ /run/current-system/sw/share/
2016-04-14 14:01:32 +03:00
done
'';
2013-12-22 20:20:17 +04:00
meta = with lib; {
homepage = "https://gitlab.com/nick87720z/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
};
}