about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/Makefile.am1
-rw-r--r--src/libmain/shared.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libmain/Makefile.am b/src/libmain/Makefile.am
index 404353c62922..6a2d7f5f58e5 100644
--- a/src/libmain/Makefile.am
+++ b/src/libmain/Makefile.am
@@ -7,6 +7,5 @@ libmain_la_LIBADD = ../libstore/libstore.la @BDW_GC_LIBS@
 pkginclude_HEADERS = shared.hh
 
 AM_CXXFLAGS = \
- -DNIX_VERSION=\"$(VERSION)\" \
  -I$(srcdir)/.. -I$(srcdir)/../libutil \
  -I$(srcdir)/../libstore
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 2cf5b08df32d..ead3fc017ae2 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -180,7 +180,7 @@ static void initAndRun(int argc, char * * argv)
             return;
         }
         else if (arg == "--version") {
-            std::cout << format("%1% (Nix) %2%") % programId % NIX_VERSION << std::endl;
+            std::cout << format("%1% (Nix) %2%") % programId % nixVersion << std::endl;
             return;
         }
         else if (arg == "--keep-failed" || arg == "-K")