* Add an installCheckPhase.

svn path=/nixpkgs/branches/stdenv-updates/; revision=33967
This commit is contained in:
Eelco Dolstra
2012-05-01 21:00:30 +00:00
parent 661d16d3fe
commit be901fa8be
2 changed files with 19 additions and 5 deletions

View File

@@ -34,6 +34,8 @@ stdenv.mkDerivation rec {
CFLAGS=-O3 CXXFLAGS=-O3
'';
doInstallCheck = true;
crossAttrs = {
postUnpack =
'' export CPATH="${bzip2.hostDrv}/include"
@@ -51,14 +53,11 @@ stdenv.mkDerivation rec {
'' + stdenv.lib.optionalString (
stdenv.cross ? nix && stdenv.cross.nix ? system
) ''--with-system=${stdenv.cross.nix.system}'';
doCheck = false;
postInstall = ":";
doInstallCheck = false;
};
enableParallelBuilding = true;
postInstall = "make installcheck";
meta = {
description = "The Nix Deployment System";
homepage = http://nixos.org/;