mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses, libiconv, libintlOrEmpty
|
|
, withBuildColors ? true
|
|
}:
|
|
|
|
assert withBuildColors -> ncurses != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "girara-${version}";
|
|
version = "0.2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
|
|
sha256 = "1r9jbhf9n40zj4ddqv1q5spijpjm683nxg4hr5lnir4a551s7rlq";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace colors.mk \
|
|
--replace 'ifdef TPUT_AVAILABLE' 'ifneq ($(TPUT_AVAILABLE), 0)'
|
|
'';
|
|
|
|
buildInputs = [ pkgconfig gtk gettext libintlOrEmpty ]
|
|
++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
(if withBuildColors
|
|
then "TPUT=${ncurses.out}/bin/tput"
|
|
else "TPUT_AVAILABLE=0")
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://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 ++ platforms.darwin;
|
|
maintainers = [ maintainers.garbas ];
|
|
};
|
|
}
|