Skip to content

Commit

Permalink
nix: adjust for aa55cdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Apr 9, 2024
1 parent 7525198 commit d0ebc14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
});

Expand Down
6 changes: 3 additions & 3 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
, pam
, extraPackages ? [ ]
, version ? "git"
, buildTypes ? false
, buildTypes ? true
}:

let
Expand Down Expand Up @@ -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 = ''
Expand Down

0 comments on commit d0ebc14

Please sign in to comment.