From 2ae82b544e554615bcf5235b7ee094cb438a70aa Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Fri, 15 May 2020 08:57:01 +0200 Subject: [PATCH] nix: added custom build to allow turning off the sandbox --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6bb15b77..f611be28 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -.PHONY: clean docs docs-clean docs-cleanup test test-clean test-only test-only-postgres test-only-mysql web-build generate-pkgs pip-packages +.PHONY: clean docs docs-clean docs-cleanup test test-clean test-only test-only-postgres test-only-mysql web-build generate-pkgs pip-packages build-nix NODE_PATH=./node_modules WEBPACK=./node_binaries/webpack @@ -66,4 +66,7 @@ generate-js-pkgs: generate-license-meta: nix-build pkgs/license-generate.nix -o result-license && \ - cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json \ No newline at end of file + cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json + +build-nix: + nix-build --show-trace --option sandbox false --option max-jobs 4 --option cores 4