git.iko.soy/typeable/nixpkgs
on master help sign in
girara: provided an alternative installation that doesn't require ncurses or gcc 4.9
commit222366883df167e877719b86a489abd6323ea80d authorkoral <koral@mailoo.org> dateSun 23 Nov 2014, 23:37 (12 years ago) parent444bda1
2 files changed+23−10
pkgs/applications/misc/girara/default.nix+17−10 pkgs/top-level/all-packages.nix+6
pkgs/applications/misc/girara/default.nix+17−10
@@ -1,19 +1,27 @@
1−{ stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses }:
1+{ stdenv, fetchurl, pkgconfig, gtk, gettext, withBuildColors ? true, ncurses ? null}:
22
3+assert withBuildColors -> ncurses != null;
4+
5+with stdenv.lib;
36stdenv.mkDerivation rec {
4− name = "girara-0.2.3";
7+ name = "girara-${version}";
8+ version = "0.2.3";
59
610 src = fetchurl {
711 url = "http://pwmt.org/projects/girara/download/${name}.tar.gz";
812 sha256 = "1phfmqp8y17zcy9yi6pm2f80x8ldbk60iswpm4bmjz5217jwqzxh";
913 };
1014
15+ preConfigure = ''
16+ sed -i 's/ifdef TPUT_AVAILABLE/ifneq ($(TPUT_AVAILABLE), 0)/' colors.mk
17+ '';
18+
1119 buildInputs = [ pkgconfig gtk gettext ];
1220
13− makeFlags = [
14− "PREFIX=$(out)"
15− "TPUT=${ncurses}/bin/tput"
16− ];
21+ makeFlags = [ "PREFIX=$(out)" ]
22+ ++ optional withBuildColors "TPUT=${ncurses}/bin/tput"
23+ ++ optional (!withBuildColors) "TPUT_AVAILABLE=0"
24+ ;
1725
1826 meta = {
1927 homepage = http://pwmt.org/projects/girara/;
@@ -22,9 +30,8 @@ stdenv.mkDerivation rec {
2230 girara is a library that implements a GTK+ based VIM-like user interface
2331 that focuses on simplicity and minimalism.
2432 '';
25− license = stdenv.lib.licenses.zlib;
26− platforms = stdenv.lib.platforms.linux;
27− maintainers = [ stdenv.lib.maintainers.garbas ];
33+ license = licenses.zlib;
34+ platforms = platforms.linux;
35+ maintainers = [ maintainers.garbas ];
2836 };
2937}
30−
pkgs/top-level/all-packages.nix+6
@@ -11286,6 +11286,12 @@ let
1128611286 stdenv = overrideGCC stdenv gcc49;
1128711287 };
1128811288
11289+ girara-light = callPackage ../applications/misc/girara {
11290+ gtk = gtk3;
11291+ withBuildColors = false;
11292+ ncurses = null;
11293+ };
11294+
1128911295 zgrviewer = callPackage ../applications/graphics/zgrviewer {};
1129011296
1129111297 zim = callPackage ../applications/office/zim {