lean4-htt/derivation.nix
Joe Hendrix 37ff241467 feat(CMakeLists): Add option to link in LLVM.
This updates cmake and Lean to link against the LLVM libraries.
2019-07-31 18:21:49 -07:00

27 lines
639 B
Nix

{ clangStdenv, cmake, llvm, python, gmp }:
clangStdenv.mkDerivation rec {
name = "lean-${version}";
version = "local";
# I have way too many untracked files in my checkout
src = builtins.fetchGit { url = ./.; };
nativeBuildInputs = [ cmake python ];
buildInputs = [ gmp llvm ];
enableParallelBuilding = true;
preConfigure = ''
cd src
'';
postConfigure = ''
patchShebangs ../../bin
'';
meta = with clangStdenv.lib; {
description = "Automatic and interactive theorem prover";
homepage = https://leanprover.github.io/;
license = licenses.asl20;
platforms = platforms.unix;
};
}