mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
f508c6a0d1
* girara: 0.2.5 -> 0.2.6 * zathura: 0.3.5 -> 0.3.6
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}:
|
|
|
|
assert withBuildColors -> ncurses != null;
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
name = "girara-${version}";
|
|
version = "0.2.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
|
sha256 = "03wsxj27hvcbs3x96nah7j3paclifwlfag8kdph4kldl48srp9pb";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -i 's/ifdef TPUT_AVAILABLE/ifneq ($(TPUT_AVAILABLE), 0)/' colors.mk
|
|
'';
|
|
|
|
buildInputs = [ pkgconfig gtk gettext ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
|
++ optional withBuildColors "TPUT=${ncurses.out}/bin/tput"
|
|
++ optional (!withBuildColors) "TPUT_AVAILABLE=0"
|
|
;
|
|
|
|
meta = {
|
|
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 ];
|
|
};
|
|
}
|