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}";
|
|
|
|
version = "0.2.3";
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
2014-10-23 13:57:30 +02:00
|
|
|
sha256 = "1phfmqp8y17zcy9yi6pm2f80x8ldbk60iswpm4bmjz5217jwqzxh";
|
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)" ]
|
|
|
|
++ optional withBuildColors "TPUT=${ncurses}/bin/tput"
|
|
|
|
++ 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
|
|
|
};
|
|
|
|
}
|