diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-24T16·53+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-24T16·53+0100 |
commit | da9104767ed182e2ccb296a215e8f63fd4059d15 (patch) | |
tree | bb831fdd9b57ba139f0c09a21c50469ed6b72b79 | |
parent | 41bf99bd9eac48bf3ddf06e567d1bdfef8e51a36 (diff) |
chore(3p/nix): Make build type configurable r/838
-rw-r--r-- | third_party/nix/default.nix | 6 |
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" ]; |