flake: Add clang variant

This commit is contained in:
Simon Bruder 2023-05-20 11:20:43 +02:00
parent 7dacccdbd0
commit f52bb96d91

View file

@ -12,6 +12,9 @@
doCheck = false;
checkInputs = [ ];
});
mkClang = drv: drv.override (o: {
stdenv = pkgs.clangStdenv;
});
in
{
packages = lib.foldAttrs lib.const { }
@ -19,6 +22,8 @@
(name: v: {
"${name}" = v;
"${name}-nocheck" = mkNocheck v;
"${name}-clang" = mkClang v;
"${name}-nocheck-clang" = mkClang (mkNocheck v);
})
rec {
u01 = pkgs.callPackage
@ -61,7 +66,7 @@
}));
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ catch2_3 cmake freeglut libGL libGLU reuse ];
nativeBuildInputs = with pkgs; [ catch2_3 clang cmake freeglut libGL libGLU reuse ];
};
});
}