chore(3p/nix): Make build type configurable
This commit is contained in:
parent
41bf99bd9e
commit
da9104767e
1 changed files with 3 additions and 3 deletions
6
third_party/nix/default.nix
vendored
6
third_party/nix/default.nix
vendored
|
@ -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"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue