hydra: fix tarball build, add pre suffix to tarballs

This commit is contained in:
Rob Vermaas 2010-09-30 15:02:42 +00:00
parent 3d3a495d27
commit 834ebdea4b
3 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,4 @@
AC_INIT([hydra],[0.1],[rob.vermaas@gmail.com])
AC_INIT([hydra],[m4_esyscmd([echo -n $(cat ./version)$VERSION_SUFFIX])])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC

View file

@ -11,10 +11,15 @@ rec {
releaseTools.makeSourceTarball {
name = "hydra-tarball";
version = "0.1";
src = hydraSrc;
inherit officialRelease;
buildInputs = [ perl libxslt dblatex tetex ] ;
preConfigure = ''
# TeX needs a writable font cache.
export VARTEXFONTS=$TMPDIR/texfonts
'';
};
build =
@ -32,7 +37,7 @@ rec {
configureFlags = "--with-nix=${nix}";
buildInputs =
[ perl makeWrapper libtool dblatex nix unzip ]
[ perl makeWrapper libtool nix unzip nukeReferences ]
++ (import ./deps.nix) { inherit pkgs; };
hydraPath = stdenv.lib.concatStringsSep ":" (map (p: "${p}/bin") ( [
@ -43,6 +48,7 @@ rec {
postInstall = ''
ensureDir $out/nix-support
nuke-refs $out/share/doc/hydra/manual/manual.pdf
cp ${"${nixpkgs}/pkgs/build-support/fetchsvn/nix-prefetch-svn"} $out/bin/nix-prefetch-svn
cp ${"${nixpkgs}/pkgs/build-support/fetchgit/nix-prefetch-git"} $out/bin/nix-prefetch-git

1
version Normal file
View file

@ -0,0 +1 @@
0.1