lean4-htt/nix/derivation.nix
2020-01-25 15:26:59 +01:00

27 lines
729 B
Nix

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