1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/applications/misc/tint2/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2016-02-28 06:57:08 -05:00
{ stdenv, fetchFromGitLab, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
2013-12-22 11:20:17 -05:00
, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
2016-02-28 06:57:08 -05:00
, libXdmcp, librsvg, libstartup_notification
2013-12-22 11:20:17 -05:00
}:
stdenv.mkDerivation rec {
name = "tint2-${version}";
2016-02-28 06:57:08 -05:00
version = "0.12.7";
2013-12-22 11:20:17 -05:00
2016-02-28 06:57:08 -05:00
src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
2016-02-15 17:52:13 -05:00
rev = version;
2016-02-28 06:57:08 -05:00
sha256 = "01wb1yy7zfi01fl34yzpn1d30fykcf8ivmdlynnxp5znqrdsqm2r";
2013-12-22 11:20:17 -05:00
};
2016-02-28 06:57:08 -05:00
enableParallelBuilding = true;
2013-12-22 11:20:17 -05:00
buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
2016-02-28 06:57:08 -05:00
libXdmcp librsvg libstartup_notification
2013-12-22 11:20:17 -05:00
];
2016-02-15 17:52:13 -05:00
preConfigure =
''
substituteInPlace CMakeLists.txt --replace /etc $out/etc
'';
2016-02-28 06:57:08 -05:00
2016-02-15 17:52:13 -05:00
prePatch =
''
substituteInPlace ./src/tint2conf/properties.c --replace /usr/share/ /run/current-system/sw/share/
substituteInPlace ./src/launcher/apps-common.c --replace /usr/share/ /run/current-system/sw/share/
substituteInPlace ./src/launcher/icon-theme-common.c --replace /usr/share/ /run/current-system/sw/share/
'';
2013-12-22 11:20:17 -05:00
meta = {
2016-02-15 17:52:13 -05:00
homepage = https://gitlab.com/o9000/tint2;
2013-12-22 11:20:17 -05:00
license = stdenv.lib.licenses.gpl2;
description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
platforms = stdenv.lib.platforms.linux;
};
}