nixpkgs/pkgs/applications/misc/girara/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2017-02-15 13:58:19 +00:00
{ stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses
, withBuildColors ? true
}:
assert withBuildColors -> ncurses != null;
stdenv.mkDerivation rec {
name = "girara-${version}";
2017-02-15 13:58:19 +00:00
version = "0.2.7";
src = fetchurl {
2017-02-15 13:58:19 +00:00
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
sha256 = "1r9jbhf9n40zj4ddqv1q5spijpjm683nxg4hr5lnir4a551s7rlq";
};
preConfigure = ''
2017-02-15 13:58:19 +00:00
substituteInPlace colors.mk \
--replace 'ifdef TPUT_AVAILABLE' 'ifneq ($(TPUT_AVAILABLE), 0)'
'';
buildInputs = [ pkgconfig gtk gettext ];
2017-02-15 13:58:19 +00:00
makeFlags = [
"PREFIX=$(out)"
(if withBuildColors
then "TPUT=${ncurses.out}/bin/tput"
else "TPUT_AVAILABLE=0")
];
2017-02-15 13:58:19 +00:00
meta = with stdenv.lib; {
homepage = http://pwmt.org/projects/girara/;
description = "User interface library";
longDescription = ''
girara is a library that implements a GTK+ based VIM-like user interface
that focuses on simplicity and minimalism.
'';
license = licenses.zlib;
platforms = platforms.linux;
maintainers = [ maintainers.garbas ];
};
}