2014-11-23 22:37:53 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}:
|
2012-05-14 21:43:46 +00:00
|
|
|
|
2014-11-23 22:37:53 +00:00
|
|
|
assert withBuildColors -> ncurses != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-05-14 21:43:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-23 22:37:53 +00:00
|
|
|
name = "girara-${version}";
|
2015-05-06 14:34:12 +00:00
|
|
|
version = "0.2.4";
|
2012-05-14 21:43:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
2015-05-06 14:34:12 +00:00
|
|
|
sha256 = "0pnfdsg435b5vc4x8l9pgm77aj7ram1q0bzrp9g4a3bh1r64xq1f";
|
2012-05-14 21:43:46 +00:00
|
|
|
};
|
|
|
|
|
2014-11-23 22:37:53 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/ifdef TPUT_AVAILABLE/ifneq ($(TPUT_AVAILABLE), 0)/' colors.mk
|
|
|
|
'';
|
|
|
|
|
2012-05-14 21:43:46 +00:00
|
|
|
buildInputs = [ pkgconfig gtk gettext ];
|
|
|
|
|
2014-11-23 22:37:53 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
|
|
|
++ optional withBuildColors "TPUT=${ncurses}/bin/tput"
|
|
|
|
++ optional (!withBuildColors) "TPUT_AVAILABLE=0"
|
|
|
|
;
|
2012-05-14 21:43:46 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-08-16 14:33:25 +00:00
|
|
|
homepage = http://pwmt.org/projects/girara/;
|
2012-05-14 21:43:46 +00:00
|
|
|
description = "User interface library";
|
|
|
|
longDescription = ''
|
|
|
|
girara is a library that implements a GTK+ based VIM-like user interface
|
|
|
|
that focuses on simplicity and minimalism.
|
|
|
|
'';
|
2014-11-23 22:37:53 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.garbas ];
|
2012-05-14 21:43:46 +00:00
|
|
|
};
|
|
|
|
}
|