flake: Build variants without tests

Tests set the C++ version to 17, however only up to 11 is allowed in the
other files.
This commit is contained in:
Simon Bruder 2023-05-13 22:20:43 +02:00
parent 085b8fcdb9
commit c5289609e5

View file

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