summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-28 12:52:54 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-28 12:52:54 +0000
commitd81ed8201f9d0b994725e970fae2efded3468539 (patch)
tree85f7e75c240f4293b5118f208f1104b3577fffa3 /pkgs
parent66097104090e06c43a784193809bc8843a2ec052 (diff)
downloadnixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar.gz
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar.bz2
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar.lz
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar.xz
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.tar.zst
nixpkgs-d81ed8201f9d0b994725e970fae2efded3468539.zip
* Turn vim/default.nix into a regular package. We don't need two
  configurable VIMs.

svn path=/nixpkgs/trunk/; revision=22784
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/vim/default.nix85
-rw-r--r--pkgs/os-specific/linux/util-linux-ng/default.nix2
-rw-r--r--pkgs/top-level/all-packages.nix16
3 files changed, 13 insertions, 90 deletions
diff --git a/pkgs/applications/editors/vim/default.nix b/pkgs/applications/editors/vim/default.nix
index 1fd01a55fd7..6f6a592a02d 100644
--- a/pkgs/applications/editors/vim/default.nix
+++ b/pkgs/applications/editors/vim/default.nix
@@ -1,86 +1,17 @@
-args:
-let 
-	defList = [];
-	#stdenv and fetchurl are added automatically
-	getVal = (args.lib.getValue args defList);
-	check = args.lib.checkFlag args;
-	reqsList = [
-	["gtkGUI" "glib" "gtk" "pkgconfig" "libXpm" "libXext" "x11Support"]
-	["athenaGUI" "libXau" "libXt" "libXaw" "libXpm" "libXext" "x11Support"]
-	["x11Support" "libX11"]
-	["hugeFeatures"]
-	["pythonSupport" "python"]
-	["perlSupport" "perl"]
-	["tclSupport" "tcl"]
-	["eclSupport" "ecl" "gmp" "mpfr"]
-	["luaSupport" "lua"]
+{ stdenv, fetchurl, ncurses }:
 
-	# Currently causes problems
-	["mzSchemeSupport" "pltScheme"]
-
-	["perlSupport" "perl"]
-	["rubySupport" "ruby"]
-	["hangulSupport"]
-	["sniffSupport"]
-	["gettextSupport" "gettext"]
-	["true" "ncurses"]
-	["false" "libSM"]
-	];
-	nameSuffixes = [
-	"hugeFeatures" "-huge"
-	"x11Support" "-X11"
-	"pythonSupport" "-python"
-	"perlSupport" "-perl"
-	"tclSupport" "-tcl"
-	"ximSupport" "-xim"
-	"eclSupport" "-ecl"
-	"luaSupport" "-lua"
-	"perlSupport" "-perl"
-	"rubySupport" "-ruby"
-	"mzSchemeSupport" "-mzscheme"
-	];
-	configFlags = [
-	"true" " --enable-multibyte "
-	"x11Support" " --enable-gui=auto "
-	"hugeFeatures" "--with-features=huge --enable-cscope --enable-xsmp "
-	"pythonSupport" " --enable-pythoninterp "
-	"perlSupport" " --enable-perlinterp "
-	"tclSupport" " --enable-tclinterp "
-	"ximSupport" " --enable-xim "
-	"eclSupport" " --enable-eclinterp "
-	"hangulSupport" " --enable-hangulinput "
-	"perlSupport" " --enable-perlinterp "
-	"luaSupport" " --enable-luainterp --with-lua-prefix=${args.lua} "
-	"rubySupport" " --enable-rubyinterp "
-	"sniffSupport" " --enable-sniff "
-	"mzSchemeSupport" " --enable-mzschemeinterp "
-	"gettextSupport" " --enable-nls "
-	];
-	buildInputsNames = args.lib.filter (x: (null!=getVal x)) 
-		(args.lib.uniqList {inputList = 
-		(args.lib.concatLists (map 
-		(x:(if (x==[]) then [] else builtins.tail x)) 
-		reqsList));});
-in
-	assert args.lib.checkReqs args defList reqsList;
-args.stdenv.mkDerivation {
-  name = args.lib.condConcat "vim-7.2" nameSuffixes check;
+stdenv.mkDerivation rec {
+  name = "vim-7.2";
  
-  src = args.lib.attrByPath ["src"] (args.fetchurl {
-    url = ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2;
+  src = fetchurl {
+    url = "ftp://ftp.vim.org/pub/vim/unix/${name}.tar.bz2";
     sha256 = "11hxkb6r2550c4n13nwr0d8afvh30qjyr5c2hw16zgay43rb0kci";
-  }) args;
+  };
  
-  inherit (args) ncurses;
-
-  buildInputs = args.lib.filter (x: (x!=null)) (map getVal buildInputsNames);
+  buildInputs = [ ncurses ];
 
   postInstall = "ln -s $out/bin/vim $out/bin/vi";
-  preBuild="touch src/auto/link.sed";
-  configureFlags = args.lib.condConcat "" configFlags check;
-
-  NIX_LDFLAGS = "-lpthread -lutil";
-
+  
   meta = {
     description = "The most popular clone of the VI editor";
     homepage = http://www.vim.org;
diff --git a/pkgs/os-specific/linux/util-linux-ng/default.nix b/pkgs/os-specific/linux/util-linux-ng/default.nix
index 226db5f1b3d..ca21deb6489 100644
--- a/pkgs/os-specific/linux/util-linux-ng/default.nix
+++ b/pkgs/os-specific/linux/util-linux-ng/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses ? null, ... }:
+{ stdenv, fetchurl, ncurses ? null }:
 
 stdenv.mkDerivation rec {
   name = "util-linux-ng-2.17.2";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9b89782a86d..342b38b2aa8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2016,6 +2016,7 @@ let
 
   bashReal = makeOverridable (import ../shells/bash) {
     inherit fetchurl stdenv bison;
+    texinfo = null;
   };
 
   bashInteractive = appendToName "interactive" (bashReal.override {
@@ -7080,6 +7081,7 @@ let
 
   utillinuxng = makeOverridable (import ../os-specific/linux/util-linux-ng) {
     inherit fetchurl stdenv;
+    ncurses = null;
   };
 
   utillinuxngCurses = utillinuxng.override {
@@ -8988,20 +8990,10 @@ let
   };
 
   vim = makeOverridable (import ../applications/editors/vim) {
-    inherit fetchurl stdenv ncurses lib;
+    inherit fetchurl stdenv ncurses;
   };
 
-  vimHugeX = vim.override {
-    inherit pkgconfig
-      perl python tcl;
-    inherit (xlibs) libX11 libXext libSM libXpm
-      libXt libXaw libXau;
-    inherit (gtkLibs) glib gtk;
-
-    # Looks like python and perl can conflict
-    flags = ["hugeFeatures" "gtkGUI" "x11Support"
-      /*"perlSupport"*/ "pythonSupport" "tclSupport"];
-  };
+  vimHugeX = vim_configurable;
 
   vim_configurable = import ../applications/editors/vim/configurable.nix {
     inherit fetchurl stdenv ncurses pkgconfig composableDerivation lib;