lean4-htt/nix/derivation.nix

25 lines
768 B
Nix

{ llvmPackages, bash, cmake, ccache, python, gmp }:
let gmp-static = gmp.override { withStatic = true; };
in 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-static llvmPackages.llvm ];
enableParallelBuilding = true;
preConfigure = ''
patchShebangs stage0/src/bin src/bin
'';
meta = with llvmPackages.stdenv.lib; {
description = "Automatic and interactive theorem prover";
homepage = https://leanprover.github.io/;
license = licenses.asl20;
platforms = platforms.unix;
};
}