Permalink
Browse files

hydra: fix tarball build, add pre suffix to tarballs

  • Loading branch information...
1 parent 3d3a495 commit 834ebdea4b86b725a4b127b6b1db0b658328aa11 @rbvermaa rbvermaa committed Sep 30, 2010
Showing with 10 additions and 3 deletions.
  1. +1 −1 configure.ac
  2. +8 −2 release.nix
  3. +1 −0 version
View
@@ -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
@@ -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
View
@@ -0,0 +1 @@
+0.1

0 comments on commit 834ebde

Please sign in to comment.