2014-11-23 22:37:53 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}:
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2014-11-23 22:37:53 +00:00
|
|
|
assert withBuildColors -> ncurses != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-05-14 22:43:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-23 22:37:53 +00:00
|
|
|
name = "girara-${version}";
|
2015-05-06 15:34:12 +01:00
|
|
|
version = "0.2.4";
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
2015-05-06 15:34:12 +01:00
|
|
|
sha256 = "0pnfdsg435b5vc4x8l9pgm77aj7ram1q0bzrp9g4a3bh1r64xq1f";
|
2012-05-14 22:43:46 +01: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 22:43:46 +01:00
|
|
|
buildInputs = [ pkgconfig gtk gettext ];
|
|
|
|
|
2014-11-23 22:37:53 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
2015-10-05 19:32:54 +01:00
|
|
|
++ optional withBuildColors "TPUT=${ncurses.dev}/bin/tput"
|
2014-11-23 22:37:53 +00:00
|
|
|
++ optional (!withBuildColors) "TPUT_AVAILABLE=0"
|
|
|
|
;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
meta = {
|
2012-08-16 15:33:25 +01:00
|
|
|
homepage = http://pwmt.org/projects/girara/;
|
2012-05-14 22:43:46 +01: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 22:43:46 +01:00
|
|
|
};
|
|
|
|
}
|