about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-24T16·53+0100
committerVincent Ambo <tazjin@google.com>2020-05-24T16·53+0100
commitda9104767ed182e2ccb296a215e8f63fd4059d15 (patch)
treebb831fdd9b57ba139f0c09a21c50469ed6b72b79 /third_party
parent41bf99bd9eac48bf3ddf06e567d1bdfef8e51a36 (diff)
chore(3p/nix): Make build type configurable r/838
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/default.nix b/third_party/nix/default.nix
index 049d48e89aff..12b5000d3b26 100644
--- a/third_party/nix/default.nix
+++ b/third_party/nix/default.nix
@@ -1,4 +1,5 @@
-{ pkgs ? (import <nixpkgs> {}).third_party, ... }:
+{ pkgs ? (import <nixpkgs> {}).third_party
+, buildType ? "release", ... }:
 
 let
   stdenv = with pkgs; overrideCC clangStdenv clang_10;
@@ -55,8 +56,7 @@ in stdenv.mkDerivation {
     xz
   ];
 
-  mesonBuildType = "release";
-
+  mesonBuildType = buildType;
   mesonFlags = [
     "-Dsandbox_shell=${pkgs.busybox-sandbox-shell}/bin/busybox"
   ];