chore(3p/nix): Make build type configurable

This commit is contained in:
Vincent Ambo 2020-05-24 17:53:42 +01:00
parent 41bf99bd9e
commit da9104767e

View file

@ -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"
];