conky: 1.9.0 -> 1.10.0
This commit is contained in:
parent
f423ba3863
commit
7eb5b00d82
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
, glib
|
, glib
|
||||||
@ -7,23 +7,17 @@
|
|||||||
, mpdSupport ? true
|
, mpdSupport ? true
|
||||||
, ibmSupport ? true # IBM/Lenovo notebooks
|
, ibmSupport ? true # IBM/Lenovo notebooks
|
||||||
|
|
||||||
# This should be optional, but it is not due to a bug in conky
|
|
||||||
# Please, try to make it optional again on update
|
|
||||||
, ncurses
|
|
||||||
#, ncursesSupport ? true , ncurses ? null
|
|
||||||
|
|
||||||
# optional features with extra dependencies
|
# optional features with extra dependencies
|
||||||
|
, ncursesSupport ? true , ncurses ? null
|
||||||
, x11Support ? true , x11 ? null
|
, x11Support ? true , x11 ? null
|
||||||
, xdamageSupport ? x11Support, libXdamage ? null
|
, xdamageSupport ? x11Support, libXdamage ? null
|
||||||
, imlib2Support ? x11Support, imlib2 ? null
|
, imlib2Support ? x11Support, imlib2 ? null
|
||||||
, luaSupport ? true , lua ? null
|
|
||||||
|
|
||||||
|
, luaSupport ? true , lua ? null
|
||||||
, luaImlib2Support ? luaSupport && imlib2Support
|
, luaImlib2Support ? luaSupport && imlib2Support
|
||||||
, luaCairoSupport ? luaSupport && x11Support, cairo ? null
|
, luaCairoSupport ? luaSupport && x11Support, cairo ? null
|
||||||
, toluapp ? null
|
, toluapp ? null
|
||||||
|
|
||||||
, alsaSupport ? true , alsaLib ? null
|
|
||||||
|
|
||||||
, wirelessSupport ? true , wirelesstools ? null
|
, wirelessSupport ? true , wirelesstools ? null
|
||||||
|
|
||||||
, curlSupport ? true , curl ? null
|
, curlSupport ? true , curl ? null
|
||||||
@ -33,7 +27,7 @@
|
|||||||
, libxml2 ? null
|
, libxml2 ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
#assert ncursesSupport -> ncurses != null;
|
assert ncursesSupport -> ncurses != null;
|
||||||
|
|
||||||
assert x11Support -> x11 != null;
|
assert x11Support -> x11 != null;
|
||||||
assert xdamageSupport -> x11Support && libXdamage != null;
|
assert xdamageSupport -> x11Support && libXdamage != null;
|
||||||
@ -46,8 +40,6 @@ assert luaCairoSupport -> luaSupport && toluapp != null
|
|||||||
assert luaCairoSupport || luaImlib2Support
|
assert luaCairoSupport || luaImlib2Support
|
||||||
-> lua.luaversion == "5.1";
|
-> lua.luaversion == "5.1";
|
||||||
|
|
||||||
assert alsaSupport -> alsaLib != null;
|
|
||||||
|
|
||||||
assert wirelessSupport -> wirelesstools != null;
|
assert wirelessSupport -> wirelesstools != null;
|
||||||
|
|
||||||
assert curlSupport -> curl != null;
|
assert curlSupport -> curl != null;
|
||||||
@ -58,62 +50,52 @@ assert weatherXoapSupport -> curlSupport && libxml2 != null;
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "conky-1.9.0";
|
name = "conky-${version}";
|
||||||
|
version = "1.10.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/conky/${name}.tar.bz2";
|
owner = "brndnmtthws";
|
||||||
sha256 = "0vxvjmi3cdvnp994sv5zcdyncfn0mlxa71p2wm9zpyrmy58bbwds";
|
repo = "conky";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "00vyrf72l54j3majqmn6vykqvvb15vygsaby644nsb5vpma6b1cn";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_LDFLAGS = "-lgcc_s";
|
NIX_LDFLAGS = "-lgcc_s";
|
||||||
|
|
||||||
buildInputs = [ pkgconfig glib ]
|
buildInputs = [ pkgconfig glib cmake ]
|
||||||
++ [ ncurses ]
|
++ optional ncursesSupport ncurses
|
||||||
#++ optional ncursesSupport ncurses
|
|
||||||
++ optional x11Support x11
|
++ optional x11Support x11
|
||||||
++ optional xdamageSupport libXdamage
|
++ optional xdamageSupport libXdamage
|
||||||
++ optional imlib2Support imlib2
|
++ optional imlib2Support imlib2
|
||||||
++ optional luaSupport lua
|
++ optional luaSupport lua
|
||||||
++ optionals luaImlib2Support [ toluapp imlib2 ]
|
++ optionals luaImlib2Support [ toluapp imlib2 ]
|
||||||
++ optionals luaCairoSupport [ toluapp cairo ]
|
++ optionals luaCairoSupport [ toluapp cairo ]
|
||||||
|
|
||||||
++ optional alsaSupport alsaLib
|
|
||||||
|
|
||||||
++ optional wirelessSupport wirelesstools
|
++ optional wirelessSupport wirelesstools
|
||||||
|
|
||||||
++ optional curlSupport curl
|
++ optional curlSupport curl
|
||||||
++ optional rssSupport libxml2
|
++ optional rssSupport libxml2
|
||||||
++ optional weatherXoapSupport libxml2
|
++ optional weatherXoapSupport libxml2
|
||||||
;
|
;
|
||||||
|
|
||||||
configureFlags =
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
|
||||||
let flag = state: flags: if state then map (x: "--enable-${x}") flags
|
++ optional curlSupport "-DBUILD_CURL=ON"
|
||||||
else map (x: "--disable-${x}") flags;
|
++ optional (!ibmSupport) "-DBUILD_IBM=OFF"
|
||||||
in flag mpdSupport [ "mpd" ]
|
++ optional imlib2Support "-DBUILD_IMLIB2=ON"
|
||||||
++ flag ibmSupport [ "ibm" ]
|
++ optional luaCairoSupport "-DBUILD_LUA_CAIRO=ON"
|
||||||
|
++ optional luaImlib2Support "-DBUILD_LUA_IMLIB2=ON"
|
||||||
|
++ optional (!mpdSupport) "-DBUILD_MPD=OFF"
|
||||||
|
++ optional (!ncursesSupport) "-DBUILD_NCURSES=OFF"
|
||||||
|
++ optional rssSupport "-DBUILD_RSS=ON"
|
||||||
|
++ optional (!x11Support) "-DBUILD_X11=OFF"
|
||||||
|
++ optional xdamageSupport "-DBUILD_XDAMAGE=ON"
|
||||||
|
++ optional weatherMetarSupport "-DBUILD_WEATHER_METAR=ON"
|
||||||
|
++ optional weatherXoapSupport "-DBUILD_WEATHER_XOAP=ON"
|
||||||
|
++ optional wirelessSupport "-DBUILD_WLAN=ON"
|
||||||
|
;
|
||||||
|
|
||||||
#++ flag ncursesSupport [ "ncurses" ]
|
meta = with stdenv.lib; {
|
||||||
++ flag x11Support [ "x11" "xft" "argb" "double-buffer" "own-window" ] # conky won't compile without --enable-own-window
|
|
||||||
++ flag xdamageSupport [ "xdamage" ]
|
|
||||||
++ flag imlib2Support [ "imlib2" ]
|
|
||||||
++ flag luaSupport [ "lua" ]
|
|
||||||
++ flag luaImlib2Support [ "lua-imlib2" ]
|
|
||||||
++ flag luaCairoSupport [ "lua-cairo" ]
|
|
||||||
|
|
||||||
++ flag alsaSupport [ "alsa" ]
|
|
||||||
|
|
||||||
++ flag wirelessSupport [ "wlan" ]
|
|
||||||
|
|
||||||
++ flag curlSupport [ "curl" ]
|
|
||||||
++ flag rssSupport [ "rss" ]
|
|
||||||
++ flag weatherMetarSupport [ "weather-metar" ]
|
|
||||||
++ flag weatherXoapSupport [ "weather-xoap" ]
|
|
||||||
;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://conky.sourceforge.net/;
|
homepage = http://conky.sourceforge.net/;
|
||||||
description = "Advanced, highly configurable system monitor based on torsmo";
|
description = "Advanced, highly configurable system monitor based on torsmo";
|
||||||
maintainers = [ stdenv.lib.maintainers.guibert ];
|
maintainers = [ maintainers.guibert ];
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user