girara: 0.2.6 -> 0.2.7

This commit is contained in:
rnhmjoj 2017-02-15 14:58:19 +01:00
parent 824d82fa0f
commit 6462775193
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

@ -1,29 +1,33 @@
{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}: { stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses
, withBuildColors ? true
}:
assert withBuildColors -> ncurses != null; assert withBuildColors -> ncurses != null;
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "girara-${version}"; name = "girara-${version}";
version = "0.2.6"; version = "0.2.7";
src = fetchurl { src = fetchurl {
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz"; url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
sha256 = "03wsxj27hvcbs3x96nah7j3paclifwlfag8kdph4kldl48srp9pb"; sha256 = "1r9jbhf9n40zj4ddqv1q5spijpjm683nxg4hr5lnir4a551s7rlq";
}; };
preConfigure = '' preConfigure = ''
sed -i 's/ifdef TPUT_AVAILABLE/ifneq ($(TPUT_AVAILABLE), 0)/' colors.mk substituteInPlace colors.mk \
--replace 'ifdef TPUT_AVAILABLE' 'ifneq ($(TPUT_AVAILABLE), 0)'
''; '';
buildInputs = [ pkgconfig gtk gettext ]; buildInputs = [ pkgconfig gtk gettext ];
makeFlags = [ "PREFIX=$(out)" ] makeFlags = [
++ optional withBuildColors "TPUT=${ncurses.out}/bin/tput" "PREFIX=$(out)"
++ optional (!withBuildColors) "TPUT_AVAILABLE=0" (if withBuildColors
; then "TPUT=${ncurses.out}/bin/tput"
else "TPUT_AVAILABLE=0")
];
meta = { meta = with stdenv.lib; {
homepage = http://pwmt.org/projects/girara/; homepage = http://pwmt.org/projects/girara/;
description = "User interface library"; description = "User interface library";
longDescription = '' longDescription = ''