diff --git a/flake.nix b/flake.nix index 799f13c9..aaca0c42 100644 --- a/flake.nix +++ b/flake.nix @@ -19,9 +19,10 @@ packages = genSystems (system: rec { default = pkgs.${system}.callPackage ./nix {inherit version;}; ags = default; - agsWithTypes = pkgs.${system}.callPackage ./nix { + agsWithTypes = default; # for backwards compatibility + agsNoTypes = pkgs.${system}.callPackage ./nix { inherit version; - buildTypes = true; + buildTypes = false; }; }); diff --git a/nix/default.nix b/nix/default.nix index b68c0304..f20f04d7 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -23,7 +23,7 @@ , pam , extraPackages ? [ ] , version ? "git" -, buildTypes ? false +, buildTypes ? true }: let @@ -53,8 +53,8 @@ stdenv.mkDerivation rec { ''; }; - mesonFlags = builtins.concatLists [ - (lib.optional buildTypes "-Dbuild_types=true") + mesonFlags = [ + "-Dbuild_types=${if buildTypes then "true" else "false"}" ]; prePatch = ''