* Work around some problems in tarball checks. Nix wants to open the

DB even in read-only mode.  Should probably fix that.  Also, "or" no
  longer works like this because it's a keyword now.

svn path=/nixpkgs/trunk/; revision=34079
wip/yesman
Eelco Dolstra 12 years ago
parent 500c46b56b
commit 069604730b
  1. 4
      pkgs/lib/tests.nix
  2. 3
      pkgs/top-level/make-tarball.nix
  3. 1
      pkgs/top-level/release-small.nix
  4. 1
      pkgs/top-level/release.nix

@ -12,11 +12,13 @@ runTests {
expr = const 2 3;
expected = 2;
};
/*
testOr = {
expr = or true false;
expected = true;
};
*/
testAnd = {
expr = and true false;

@ -41,6 +41,9 @@ releaseTools.makeSourceTarball {
doCheck = true;
checkPhase = ''
export NIX_DB_DIR=$TMPDIR
nix-store --init
# Run the regression tests in `lib'.
res="$(nix-instantiate --eval-only --strict pkgs/lib/tests.nix)"
if test "$res" != "[ ]"; then

@ -133,7 +133,6 @@ with (import ./release-lib.nix);
nfsUtils = linux;
nix = all;
nixUnstable = all;
nixSqlite = all;
nss_ldap = linux;
nssmdns = linux;
ntfs3g = linux;

@ -210,7 +210,6 @@ with (import ./release-lib.nix);
nfsUtils = linux;
nix = all;
nixUnstable = all;
nixSqlite = all;
nmap = linux;
nss_ldap = linux;
nssmdns = linux;

Loading…
Cancel
Save