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

43 lines
1.3 KiB
Nix
Raw Normal View History

2016-02-28 12:57:08 +01:00
{ stdenv, fetchFromGitLab, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
2013-12-22 17:20:17 +01:00
, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
2016-02-28 12:57:08 +01:00
, libXdmcp, librsvg, libstartup_notification
2013-12-22 17:20:17 +01:00
}:
stdenv.mkDerivation rec {
name = "tint2-${version}";
2016-02-28 12:57:08 +01:00
version = "0.12.7";
2013-12-22 17:20:17 +01:00
2016-02-28 12:57:08 +01:00
src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
2016-02-15 23:52:13 +01:00
rev = version;
2016-02-28 12:57:08 +01:00
sha256 = "01wb1yy7zfi01fl34yzpn1d30fykcf8ivmdlynnxp5znqrdsqm2r";
2013-12-22 17:20:17 +01:00
};
2016-02-28 12:57:08 +01:00
enableParallelBuilding = true;
2013-12-22 17:20:17 +01:00
buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
2016-02-28 12:57:08 +01:00
libXdmcp librsvg libstartup_notification
2013-12-22 17:20:17 +01:00
];
2016-02-15 23:52:13 +01:00
preConfigure =
''
substituteInPlace CMakeLists.txt --replace /etc $out/etc
'';
2016-02-28 12:57:08 +01:00
2016-02-15 23:52:13 +01: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 17:20:17 +01:00
meta = {
2016-02-15 23:52:13 +01:00
homepage = https://gitlab.com/o9000/tint2;
2013-12-22 17:20:17 +01:00
license = stdenv.lib.licenses.gpl2;
description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
platforms = stdenv.lib.platforms.linux;
};
}