about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/build-support/build-sandbox/src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/build-sandbox/src/Makefile b/pkgs/build-support/build-sandbox/src/Makefile
index cd642b8e..199e025a 100644
--- a/pkgs/build-support/build-sandbox/src/Makefile
+++ b/pkgs/build-support/build-sandbox/src/Makefile
@@ -2,7 +2,8 @@ BINARIES = $(wildcard $(BINDIR)/*)
 WRAPPERS = $(subst $(BINDIR),$(out)/bin,$(BINARIES))
 
 NIX_VERSION = `pkg-config --modversion nix-main | \
-               sed -e 's/^\([0-9]\+\)\.\([0-9]\+\).*/\1\2/'`
+               sed -e 's/^\([0-9]\+\)\.\([0-9][0-9]\).*/\1\2/' \
+                   -e 's/^\([0-9]\+\)\.\([0-9]\).*/\10\2/'`
 
 OBJECTS = nix-query.o path-cache.o params.o setup.o