* Make the version available to release.nix.

This commit is contained in:
Eelco Dolstra 2009-03-09 15:05:08 +00:00
parent a96cac0d18
commit be88248add
3 changed files with 15 additions and 41 deletions

View file

@ -1,4 +1,4 @@
AC_INIT(nix, m4_esyscmd([echo -n 0.13$VERSION_SUFFIX])) AC_INIT(nix, m4_esyscmd([echo -n $(cat ./version)$VERSION_SUFFIX]))
AC_CONFIG_SRCDIR(README) AC_CONFIG_SRCDIR(README)
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([dist-bzip2 foreign]) AM_INIT_AUTOMAKE([dist-bzip2 foreign])

View file

@ -1,18 +1,20 @@
{ nixpkgs ? ../nixpkgs }:
let let
jobs = rec { jobs = rec {
tarball = tarball =
{ nix ? {path = ./.; rev = 1234;} { nix ? {outPath = ./.; rev = 1234;}
, nixpkgs ? {path = ../nixpkgs;}
, officialRelease ? false , officialRelease ? false
}: }:
with import nixpkgs.path {}; with import nixpkgs {};
releaseTools.makeSourceTarball { releaseTools.makeSourceTarball {
name = "nix-tarball"; name = "nix-tarball";
version = builtins.readFile ./version;
src = nix; src = nix;
inherit officialRelease; inherit officialRelease;
@ -50,12 +52,11 @@ let
build = build =
{ tarball ? {path = jobs.tarball {};} { tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
, system ? "i686-linux" , system ? "i686-linux"
}: }:
with import nixpkgs.path {inherit system;}; with import nixpkgs {inherit system;};
releaseTools.nixBuild { releaseTools.nixBuild {
name = "nix"; name = "nix";
@ -76,11 +77,10 @@ let
coverage = coverage =
{ tarball ? {path = jobs.tarball {};} { tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}: }:
with import nixpkgs.path {}; with import nixpkgs {};
releaseTools.coverageAnalysis { releaseTools.coverageAnalysis {
name = "nix-build"; name = "nix-build";
@ -123,41 +123,15 @@ let
}; };
doBuild =
{ tarball, nixpkgs, system, coverageAnalysis }:
with import nixpkgs.path {inherit system;};
releaseTools.nixBuild {
name = "nix-build";
src = tarball;
buildInputs = [curl perl bzip2 openssl];
configureFlags = ''
--disable-init-state
--with-bdb=${db45} --with-aterm=${aterm242fixes} --with-bzip2=${bzip2}
'';
postInstall = if coverageAnalysis then "" else ''
echo "doc manual $out/share/doc/nix/manual" >> $out/nix-support/hydra-build-products
echo "doc release-notes $out/share/doc/nix/release-notes" >> $out/nix-support/hydra-build-products
'';
inherit coverageAnalysis;
};
makeRPM_i686 = makeRPM "i686-linux"; makeRPM_i686 = makeRPM "i686-linux";
makeRPM_x86_64 = makeRPM "x86_64-linux"; makeRPM_x86_64 = makeRPM "x86_64-linux";
makeRPM = makeRPM =
system: diskImageFun: prio: system: diskImageFun: prio:
{ tarball ? {path = jobs.tarball {};} { tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}: }:
with import nixpkgs.path {inherit system;}; with import nixpkgs {inherit system;};
releaseTools.rpmBuild rec { releaseTools.rpmBuild rec {
name = "nix-rpm-${diskImage.name}"; name = "nix-rpm-${diskImage.name}";
@ -173,11 +147,10 @@ let
makeDeb = makeDeb =
system: diskImageFun: prio: system: diskImageFun: prio:
{ tarball ? {path = jobs.tarball {};} { tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}: }:
with import nixpkgs.path {inherit system;}; with import nixpkgs {inherit system;};
releaseTools.debBuild { releaseTools.debBuild {
name = "nix-deb"; name = "nix-deb";

1
version Normal file
View file

@ -0,0 +1 @@
0.13