* Include the Git shortrev in the version number.

* Less verbose output in the tarball job.

svn path=/nixpkgs/trunk/; revision=34335
This commit is contained in:
Eelco Dolstra 2012-06-04 04:12:17 +00:00
parent 3761afc91a
commit 887c89cc33

View file

@ -2,17 +2,20 @@
also builds the documentation and tests whether the Nix expressions
evaluate correctly. */
{ nixpkgs ? {outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; rev = 1234;}
{ nixpkgs ? { outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
, officialRelease ? false
}:
with import nixpkgs.outPath {};
releaseTools.makeSourceTarball {
releaseTools.sourceTarball {
name = "nixpkgs-tarball";
src = nixpkgs;
inherit officialRelease;
version = builtins.readFile ../../VERSION;
versionSuffix = if officialRelease then "" else "pre${toString nixpkgs.revCount}_${nixpkgs.shortRev}";
buildInputs = [
lzma
libxml2 # Needed for the release notes.
@ -24,7 +27,7 @@ releaseTools.makeSourceTarball {
configurePhase = ''
eval "$preConfigure"
releaseName=nixpkgs-$(cat $src/VERSION)$VERSION_SUFFIX
releaseName=nixpkgs-$VERSION$VERSION_SUFFIX
echo "release name is $releaseName"
echo $releaseName > relname
'';
@ -57,7 +60,7 @@ releaseTools.makeSourceTarball {
header "checking pkgs/top-level/all-packages.nix on $platform"
nix-env --readonly-mode -f pkgs/top-level/all-packages.nix \
--show-trace --argstr system "$platform" \
-qa \* --drv-path --system-filter \* --system --meta --xml
-qa \* --drv-path --system-filter \* --system --meta --xml > /dev/null
stopNest
done