diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index d3254554dd3fc326dcb1401a1b84c72bb908c9f3..ac68c2342b54975161155527d47d898775d6d89f 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -13,7 +13,9 @@ ifneq ($(OS), FreeBSD)
  libstore_LDFLAGS += -ldl
 endif
 
+ifeq ($(OS), Darwin)
 libstore_FILES = sandbox-defaults.sb sandbox-minimal.sb sandbox-network.sb
+endif
 
 $(foreach file,$(libstore_FILES),$(eval $(call install-data-in,$(d)/$(file),$(datadir)/nix/sandbox)))