lean4-htt/shell.nix
Sebastian Ullrich bffc55219e chore: switch back to clang 8
We observed some rare, random test failures since switching to clang 9, so we are going
back to LLVM 8 for the time being
2019-10-28 18:10:31 -07:00

13 lines
668 B
Nix

{ pkgs ? import ./nix/nixpkgs.nix, llvmPackages ? pkgs.llvmPackages_8 } @ args:
let
lean = import ./default.nix args;
temci = import (builtins.fetchGit { url = http://github.com/parttimenerd/temci.git; rev = "ba1505a7c2de471a5821a2643b34de2d1c1af03e"; }) { inherit pkgs; };
in pkgs.mkShell.override { stdenv = lean.stdenv; } rec {
inputsFrom = [ lean ];
buildInputs = with pkgs; [ temci ccache ninja ];
# https://github.com/NixOS/nixpkgs/issues/60919
hardeningDisable = [ "all" ];
# TODO: this should not be necessary when leanc starts statically linking binaries
LD_LIBRARY_PATH = "${pkgs.stdenv.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH";
}