flake: Build variants without tests

Tests set the C++ version to 17, however only up to 11 is allowed in the
other files.
filtered
Simon Bruder 2023-05-13 22:20:43 +02:00
parent 085b8fcdb9
commit c5289609e5
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,10 @@
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
mkNocheck = drv: drv.overrideAttrs (o: {
doCheck = false;
nativeBuildInputs = pkgs.lib.filter (p: p != pkgs.catch2_3) o.nativeBuildInputs;
});
in in
{ {
packages = rec { packages = rec {
@ -33,6 +37,9 @@
doCheck = true; doCheck = true;
}) })
{ }; { };
u01-nocheck = mkNocheck u01;
u02-nocheck = mkNocheck u02;
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {