2014-11-23 23:37:53 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}:
|
2012-05-14 23:43:46 +02:00
|
|
|
|
2014-11-23 23:37:53 +01:00
|
|
|
assert withBuildColors -> ncurses != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-05-14 23:43:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-23 23:37:53 +01:00
|
|
|
name = "girara-${version}";
|
2016-03-01 20:41:09 +01:00
|
|
|
version = "0.2.5";
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
2016-03-01 20:41:09 +01:00
|
|
|
sha256 = "14m8mfbck49ldwi1w2i47bbg5c9daglcmvz9v2g1hnrq8k8g5x2w";
|
2012-05-14 23:43:46 +02:00
|
|
|
};
|
|
|
|
|
2014-11-23 23:37:53 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/ifdef TPUT_AVAILABLE/ifneq ($(TPUT_AVAILABLE), 0)/' colors.mk
|
|
|
|
'';
|
|
|
|
|
2012-05-14 23:43:46 +02:00
|
|
|
buildInputs = [ pkgconfig gtk gettext ];
|
|
|
|
|
2014-11-23 23:37:53 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
2015-10-05 20:32:54 +02:00
|
|
|
++ optional withBuildColors "TPUT=${ncurses.dev}/bin/tput"
|
2014-11-23 23:37:53 +01:00
|
|
|
++ optional (!withBuildColors) "TPUT_AVAILABLE=0"
|
|
|
|
;
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-08-16 16:33:25 +02:00
|
|
|
homepage = http://pwmt.org/projects/girara/;
|
2012-05-14 23:43:46 +02: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 23:37:53 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.garbas ];
|
2012-05-14 23:43:46 +02:00
|
|
|
};
|
|
|
|
}
|