Skip to content

Commit

Permalink
Merge branch 'master' into refs/top-bases/experimental/php
Browse files Browse the repository at this point in the history
* master: (374 commits)
  adding grunt-sed node package
  phantomjs: upgrade to 1.9.2
  vim: add the missing patches
  vim_configurable: add patches to 7.4.23 (close NixOS#912)
  expect: fix build on freebsd? (close NixOS#981)
  python-selenium: 2.25.0 -> 2.35.0
  haskell-pandoc-citeproc: disable the test suite to fix the build
  git-annex: patch to fix build with recent versions of 'dns' library
  haskell-pandoc: re-generate with recent version of cabal2nix
  haskell-rfc5051: run this build in LANG=en_US.UTF-8 environment
  haskell-hakyll: patch build to succeed with latest version of pandoc
  haskell-pandoc-citeproc: add version 0.1.1
  haskell-rfc5051: add version 0.1.0.2
  haskell-aeson-pretty: add version 0.7
  haskell-ncurses: re-generate with recent version of cabal2nix
  haskellPackages: add list-tries
  haskell-diagrams-lib: jailbreak to fix build with recent semigroups library
  haskell-monoid-extras: jailbreak to fix build with recent semigroups library
  haskell-active: jailbreak to fix build with recent semigroups library
  haskell-certificate: jailbreak to fix build with recent versions of 'pem'
  ...
  • Loading branch information
MarcWeber committed Sep 19, 2013
2 parents c971b4c + 90092e6 commit f6e60ee
Show file tree
Hide file tree
Showing 346 changed files with 8,382 additions and 3,034 deletions.
8 changes: 8 additions & 0 deletions maintainers/scripts/nixpkgs-lint.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ sub showHelp {
print "=== Package meta information ===\n\n";
my $nrBadNames = 0;
my $nrMissingMaintainers = 0;
my $nrMissingPlatforms = 0;
my $nrMissingDescriptions = 0;
my $nrBadDescriptions = 0;
my $nrMissingLicenses = 0;
Expand Down Expand Up @@ -77,6 +78,12 @@ sub showHelp {
$nrMissingMaintainers++;
}

# Check the platforms.
if (!defined $pkg->{meta}->{platforms}) {
print "$attr: Lacks a platform\n";
$nrMissingPlatforms++;
}

# Package names should not be capitalised.
if ($pkgName =~ /^[A-Z]/) {
print "$attr: package name ‘$pkgName’ should not be capitalised\n";
Expand Down Expand Up @@ -159,6 +166,7 @@ sub showHelp {
print "Number of packages: ", scalar(keys %{$info->{item}}), "\n";
print "Number of bad names: $nrBadNames\n";
print "Number of missing maintainers: $nrMissingMaintainers\n";
print "Number of missing platforms: $nrMissingPlatforms\n";
print "Number of missing licenses: $nrMissingLicenses\n";
print "Number of missing descriptions: $nrMissingDescriptions\n";
print "Number of bad descriptions: $nrBadDescriptions\n";
Expand Down
48 changes: 26 additions & 22 deletions pkgs/applications/editors/emacs-24/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, ncurses, x11, libXaw, libXpm, Xaw3d
, pkgconfig, gtk, libXft, dbus, libpng, libjpeg, libungif
, libtiff, librsvg, texinfo, gconf, libxml2, imagemagick, gnutls
, alsaLib
, alsaLib, cairo
, withX ? true
}:

Expand All @@ -14,41 +14,51 @@ stdenv.mkDerivation rec {
builder = ./builder.sh;

src = fetchurl {
url = "mirror://gnu/emacs/${name}.tar.xz";
url = "mirror://gnu/emacs/${name}.tar.xz";
sha256 = "1385qzs3bsa52s5rcncbrkxlydkw0ajzrvfxgv8rws5fx512kakh";
};

buildInputs =
[ ncurses gconf libxml2 gnutls alsaLib pkgconfig texinfo ]
++ stdenv.lib.optional stdenv.isLinux dbus
++ stdenv.lib.optionals withX [
x11 libXaw Xaw3d libXpm libpng libjpeg libungif
libtiff librsvg libXft imagemagick gtk
];
++ stdenv.lib.optionals withX
[ x11 libXaw Xaw3d libXpm libpng libjpeg libungif libtiff librsvg libXft
imagemagick gtk ]
++ stdenv.lib.optional stdenv.isDarwin cairo;

configureFlags =
(if withX then
[ "--with-x-toolkit=gtk" "--with-xft"]
else
[ "--with-x=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no" ])
( if withX then
[ "--with-x-toolkit=gtk" "--with-xft"]
else
[ "--with-x=no" "--with-xpm=no" "--with-jpeg=no" "--with-png=no"
"--with-gif=no" "--with-tiff=no" ] )
# On NixOS, help Emacs find `crt*.o'.
++ stdenv.lib.optional (stdenv ? glibc)
[ "--with-crt-dir=${stdenv.glibc}/lib" ];

NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (stdenv.isDarwin && withX)
"-I${cairo}/include/cairo";

postInstall = ''
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
;; nixos specific load-path
(when (getenv "NIX_PROFILES") (setq load-path
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
(split-string (getenv "NIX_PROFILES"))))
load-path)))
EOF
;; nixos specific load-path
(when (getenv "NIX_PROFILES") (setq load-path
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
(split-string (getenv "NIX_PROFILES"))))
load-path)))
EOF
'';



doCheck = true;

meta = with stdenv.lib; {
description = "GNU Emacs 24, the extensible, customizable text editor";
homepage = http://www.gnu.org/software/emacs/;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ chaoflow lovek323 simons the-kenny ];
platforms = platforms.all;

longDescription = ''
GNU Emacs is an extensible, customizable text editor—and more. At its
Expand All @@ -66,11 +76,5 @@ EOF
extensions are distributed with GNU Emacs; others are available
separately.
'';

homepage = "http://www.gnu.org/software/emacs/";
license = "GPLv3+";

maintainers = with maintainers; [ chaoflow lovek323 simons the-kenny ];
platforms = platforms.all;
};
}
33 changes: 26 additions & 7 deletions pkgs/applications/editors/vim/configurable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ composableDerivation {
else stdenv ).mkDerivation;
} (fix: {

name = "vim_configurable-7.4";
name = "vim_configurable-7.4.23";

enableParallelBuilding = true; # test this

Expand All @@ -38,8 +38,10 @@ composableDerivation {
preConfigure
= stdenv.lib.optionalString
(stdenv.isDarwin && (config.vim.darwin or true)) ''
sed -i "5387,5390d" src/auto/configure
sed -i "5394d" src/auto/configure
# TODO: we should find a better way of doing this as, if the configure
# file changes, we need to change these line numbers
sed -i "5641,5644d" src/auto/configure
sed -i "5648d" src/auto/configure
'';

configureFlags
Expand All @@ -49,10 +51,26 @@ composableDerivation {
= [ ncurses pkgconfig gtk libX11 libXext libSM libXpm libXt libXaw libXau
libXmu glib libICE ];

prePatch = "cd src";

patches =
[ ./patches/7.4.001 ./patches/7.4.002 ./patches/7.4.003 ./patches/7.4.004
./patches/7.4.005 ./patches/7.4.006 ./patches/7.4.007 ./patches/7.4.008
./patches/7.4.009 ./patches/7.4.010 ./patches/7.4.011 ./patches/7.4.012
./patches/7.4.013 ./patches/7.4.014 ./patches/7.4.015 ./patches/7.4.016
./patches/7.4.017 ./patches/7.4.018 ./patches/7.4.019 ./patches/7.4.020
./patches/7.4.021 ./patches/7.4.022 ./patches/7.4.023 ];

# most interpreters aren't tested yet.. (see python for example how to do it)
flags = {
ftNix = {
patches = [ ./ft-nix-support.patch ];
# because we cd to src in the main patch phase, we can't just add this
# patch to the list, we have to apply it manually
postPatch = ''
cd ../runtime
patch -p2 < ${./ft-nix-support.patch}
cd ..
'';
};
}
// edf { name = "darwin"; } #Disable Darwin (Mac OS X) support.
Expand Down Expand Up @@ -131,10 +149,11 @@ composableDerivation {

dontStrip = 1;

meta = {
meta = with stdenv.lib; {
description = "The most popular clone of the VI editor";
homepage = "www.vim.org";
platforms = lib.platforms.unix;
homepage = http://www.vim.org;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
})

21 changes: 16 additions & 5 deletions pkgs/applications/editors/vim/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ stdenv, fetchurl, ncurses, gettext, pkgconfig }:

stdenv.mkDerivation rec {
name = "vim-7.4";
patchLevel = "23";
name = "vim-7.4.${patchLevel}";

src = fetchurl {
url = "ftp://ftp.vim.org/pub/vim/unix/${name}.tar.bz2";
url = "ftp://ftp.vim.org/pub/vim/unix/${name}.tar.bz2";
sha256 = "1pjaffap91l2rb9pjnlbrpvb3ay5yhhr3g91zabjvw1rqk9adxfh";
};

Expand Down Expand Up @@ -39,10 +40,20 @@ stdenv.mkDerivation rec {
# To fix the trouble in vim73, that it cannot cross-build with this patch
# to bypass a configure script check that cannot be done cross-building.
# http://groups.google.com/group/vim_dev/browse_thread/thread/66c02efd1523554b?pli=1
patchPhase = ''
sed -i -e 's/as_fn_error.*int32.*/:/' src/auto/configure
'';
# patchPhase = ''
# sed -i -e 's/as_fn_error.*int32.*/:/' src/auto/configure
# '';

prePatch = "cd src";

patches =
[ ./patches/7.4.001 ./patches/7.4.002 ./patches/7.4.003 ./patches/7.4.004
./patches/7.4.005 ./patches/7.4.006 ./patches/7.4.007 ./patches/7.4.008
./patches/7.4.009 ./patches/7.4.010 ./patches/7.4.011 ./patches/7.4.012
./patches/7.4.013 ./patches/7.4.014 ./patches/7.4.015 ./patches/7.4.016
./patches/7.4.017 ./patches/7.4.018 ./patches/7.4.019 ./patches/7.4.020
./patches/7.4.021 ./patches/7.4.022 ./patches/7.4.023 ];

meta = with stdenv.lib; {
description = "The most popular clone of the VI editor";
homepage = http://www.vim.org;
Expand Down
Loading

0 comments on commit f6e60ee

Please sign in to comment.