1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/applications/misc/tint2/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2013-12-22 16:20:17 +00:00
{ stdenv, fetchurl, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
2016-02-15 22:52:13 +00:00
, libXdmcp, librsvg, fetchgit
2013-12-22 16:20:17 +00:00
}:
stdenv.mkDerivation rec {
name = "tint2-${version}";
2016-02-15 22:52:13 +00:00
version = "0.12";
2013-12-22 16:20:17 +00:00
2016-02-15 22:52:13 +00:00
src = fetchgit {
url = "https://gitlab.com/o9000/tint2.git";
rev = version;
sha256 = "0pd84ydpqz2l6gkhj565nqi2xyiph8zfpn4xha60xshqpsg3pqjq";
2013-12-22 16:20:17 +00:00
};
buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
2016-02-15 22:52:13 +00:00
libXdmcp librsvg
2013-12-22 16:20:17 +00:00
];
2016-02-15 22:52:13 +00:00
preConfigure =
''
substituteInPlace CMakeLists.txt --replace /etc $out/etc
'';
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 16:20:17 +00:00
cmakeFlags = [
"-DENABLE_TINT2CONF=0"
2016-02-15 22:52:13 +00:00
"-DENABLE_SN=0"
2013-12-22 16:20:17 +00:00
];
meta = {
2016-02-15 22:52:13 +00:00
homepage = https://gitlab.com/o9000/tint2;
2013-12-22 16:20:17 +00:00
license = stdenv.lib.licenses.gpl2;
description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
platforms = stdenv.lib.platforms.linux;
};
}