Use a nicer version string

This commit is contained in:
Eelco Dolstra 2011-12-05 15:53:23 +01:00
parent 09e26a3011
commit 1d96b0ba67

View file

@ -1,5 +1,5 @@
{ nixpkgs ? /etc/nixos/nixpkgs { nixpkgs ? /etc/nixos/nixpkgs
, hydraSrc ? {outPath = ./.; rev = 1234;} , hydraSrc ? { outPath = ./.; revCount = 1234; gitTag = "abcdef"; }
, officialRelease ? false , officialRelease ? false
}: }:
@ -17,7 +17,9 @@ rec {
version = builtins.readFile ./version; version = builtins.readFile ./version;
buildInputs = buildInputs =
[ perl libxslt dblatex tetex nukeReferences pkgconfig boehmgc ]; [ perl libxslt dblatex tetex nukeReferences pkgconfig boehmgc git ];
versionSuffix = if officialRelease then "" else "pre${toString hydraSrc.revCount}-${hydraSrc.gitTag}";
preConfigure = '' preConfigure = ''
# TeX needs a writable font cache. # TeX needs a writable font cache.