tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge #22309: vim: allow building with gtk3
Vladimír Čunát
9 years ago
01751a94
68b4a1f6
+9
-7
2 changed files
expand all
collapse all
unified
split
nixos
modules
services
x11
desktop-managers
gnome3.nix
pkgs
applications
editors
vim
configurable.nix
+5
-2
nixos/modules/services/x11/desktop-managers/gnome3.nix
···
78
};
79
80
debug = mkEnableOption "gnome-session debug messages";
81
-
};
82
83
environment.gnome3.packageSet = mkOption {
84
default = null;
···
86
description = "Which GNOME 3 package set to use.";
87
apply = p: if p == null then pkgs.gnome3 else p;
88
};
89
-
90
environment.gnome3.excludePackages = mkOption {
91
default = [];
92
example = literalExample "[ pkgs.gnome3.totem ]";
···
124
hardware.bluetooth.enable = mkDefault true;
125
services.xserver.libinput.enable = mkDefault true; # for controlling touchpad settings via gnome control center
126
services.udev.packages = [ pkgs.gnome3.gnome_settings_daemon ];
0
0
0
127
128
fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];
129
···
78
};
79
80
debug = mkEnableOption "gnome-session debug messages";
81
+
};
82
83
environment.gnome3.packageSet = mkOption {
84
default = null;
···
86
description = "Which GNOME 3 package set to use.";
87
apply = p: if p == null then pkgs.gnome3 else p;
88
};
89
+
90
environment.gnome3.excludePackages = mkOption {
91
default = [];
92
example = literalExample "[ pkgs.gnome3.totem ]";
···
124
hardware.bluetooth.enable = mkDefault true;
125
services.xserver.libinput.enable = mkDefault true; # for controlling touchpad settings via gnome control center
126
services.udev.packages = [ pkgs.gnome3.gnome_settings_daemon ];
127
+
128
+
# If gnome3 is installed, build vim for gtk3 too.
129
+
nixpkgs.config.vim.gui = "gtk3";
130
131
fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];
132
+4
-5
pkgs/applications/editors/vim/configurable.nix
···
1
# TODO tidy up eg The patchelf code is patching gvim even if you don't build it..
2
# but I have gvim with python support now :) - Marc
3
args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, gettext
4
-
, composableDerivation, writeText, lib, config, glib, gtk2, python, perl, tcl, ruby
5
, libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu
6
, libICE
7
···
69
nativeBuildInputs = [ pkgconfig ];
70
71
buildInputs
72
-
= [ ncurses gtk2 libX11 libXext libSM libXpm libXt libXaw libXau
73
-
libXmu glib libICE ];
74
75
# most interpreters aren't tested yet.. (see python for example how to do it)
76
flags = {
···
149
ftNixSupport = config.vim.ftNix or true;
150
};
151
152
-
#--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
153
/*
154
// edf "gtk_check" "gtk_check" { } #If auto-select GUI, check for GTK default=yes
155
// edf "gtk2_check" "gtk2_check" { } #If GTK GUI, check for GTK+ 2 default=yes
···
171
172
dontStrip = 1;
173
})
174
-
···
1
# TODO tidy up eg The patchelf code is patching gvim even if you don't build it..
2
# but I have gvim with python support now :) - Marc
3
args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, gettext
4
+
, composableDerivation, writeText, lib, config, glib, gtk2, gtk3, python, perl, tcl, ruby
5
, libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu
6
, libICE
7
···
69
nativeBuildInputs = [ pkgconfig ];
70
71
buildInputs
72
+
= [ ncurses libX11 libXext libSM libXpm libXt libXaw libXau
73
+
libXmu glib libICE ] ++ (if args.gui == "gtk3" then [gtk3] else [gtk2]);
74
75
# most interpreters aren't tested yet.. (see python for example how to do it)
76
flags = {
···
149
ftNixSupport = config.vim.ftNix or true;
150
};
151
152
+
#--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gtk3/gnome/gnome2/motif/athena/neXtaw/photon/carbon
153
/*
154
// edf "gtk_check" "gtk_check" { } #If auto-select GUI, check for GTK default=yes
155
// edf "gtk2_check" "gtk2_check" { } #If GTK GUI, check for GTK+ 2 default=yes
···
171
172
dontStrip = 1;
173
})
0