about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/libmain/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2ba8e92384a9..b4dd93c4a367 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,8 @@ if test "$STABLE" != "1"; then
     elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then
         VERSION="${VERSION}pre${REVISION}"
     fi
+    NIX_VERSION=$VERSION
+    AC_SUBST(NIX_VERSION)
 fi
 
 AC_PREFIX_DEFAULT(/nix)
diff --git a/src/libmain/Makefile.am b/src/libmain/Makefile.am
index 3c28441ca166..e326b84217e8 100644
--- a/src/libmain/Makefile.am
+++ b/src/libmain/Makefile.am
@@ -7,5 +7,5 @@ AM_CXXFLAGS = \
  -DNIX_DATA_DIR=\"$(datadir)\" \
  -DNIX_STATE_DIR=\"$(localstatedir)/nix\" \
  -DNIX_LOG_DIR=\"$(localstatedir)/log/nix\" \
- -DNIX_VERSION=\"$(VERSION)\" \
+ -DNIX_VERSION=\"$(NIX_VERSION)\" \
  -I.. ${aterm_include} -I../libutil -I../libstore