Skip to content

Instantly share code, notes, and snippets.

@robertodr
Created December 24, 2023 11:39
Show Gist options
  • Save robertodr/121c90fbc6929a946cbc5592bcdd1a79 to your computer and use it in GitHub Desktop.
Save robertodr/121c90fbc6929a946cbc5592bcdd1a79 to your computer and use it in GitHub Desktop.
mrcpp nix shell
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
overlays = [
];
};
in
pkgs.mkShell.override { stdenv = pkgs.llvmPackages_13.stdenv; } {
name = "MRCPP";
nativeBuildInputs = with pkgs; [
clang-analyzer
clang-tools
cmake
eigen
fmt
ninja
llvmPackages_13.openmp
openmpi
];
buildInputs = with pkgs; [
lldb
gdb
python3
python3.pkgs.pyyaml
valgrind
];
hardeningDisable = [ "all" ];
NINJA_STATUS = "[Built edge %f of %t in %e sec] ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment