mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-06 04:40:10 +00:00
lean2: drop (#589501)
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchpatch,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
gmp,
|
||||
mpfr,
|
||||
python3,
|
||||
jemalloc,
|
||||
ninja,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "lean2";
|
||||
version = "2018-10-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "leanprover";
|
||||
repo = "lean2";
|
||||
rev = "8072fdf9a0b31abb9d43ab894d7a858639e20ed7";
|
||||
sha256 = "12bscgihdgvaq5xi0hqf5r4w386zxm3nkx1n150lv5smhg8ga3gg";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/leanprover/lean2/pull/13
|
||||
(fetchpatch {
|
||||
name = "lean2-fix-compilation-error.patch";
|
||||
url = "https://github.com/collares/lean2/commit/09b316ce75fd330b3b140d138bcdae2b0e909234.patch";
|
||||
sha256 = "060mvqn9y8lsn4l20q9rhamkymzsgh0r1vzkjw78gnj8kjw67jl5";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.8.12)" "cmake_minimum_required(VERSION 3.10)"
|
||||
|
||||
# 'class lean::static_matrix<T, X>' has no member named 'get'
|
||||
substituteInPlace src/util/lp/static_matrix.h \
|
||||
--replace-fail "m_matrix.get(" "m_matrix.get_elem("
|
||||
|
||||
# 'const class lean::static_matrix<T, X>' has no member named 'get_value_of_column_cell'
|
||||
substituteInPlace src/util/lp/static_matrix.cpp \
|
||||
--replace-fail "A.get_value_of_column_cell(col)" "A[col]"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
makeWrapper
|
||||
ninja
|
||||
];
|
||||
buildInputs = [
|
||||
gmp
|
||||
mpfr
|
||||
python3
|
||||
jemalloc
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs bin/leantags
|
||||
cd src
|
||||
'';
|
||||
|
||||
cmakeFlags = [ "-GNinja" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Automatic and interactive theorem prover (version with HoTT support)";
|
||||
homepage = "http://leanprover.github.io";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [
|
||||
thoughtpolice
|
||||
];
|
||||
broken = stdenv.hostPlatform.isAarch64;
|
||||
mainProgram = "lean";
|
||||
};
|
||||
}
|
||||
@@ -1432,6 +1432,7 @@ mapAliases {
|
||||
ldash = throw "'ldash' has been removed due to lack of maintenance"; # Add 2026-10-26
|
||||
leaf = throw "'leaf' has been removed as it is unmaintained. Consider using 'fastfetch' instead"; # Added 2026-04-24
|
||||
leafnode = throw "'leafnode' has been removed as it is unmaintained and depends on EOL library PCRE. Consider using leafnode1 instead"; # Added 2026-07-30
|
||||
lean2 = throw "'lean2' has been removed, as it has been unmaintained upstream since October 2018 and archived upstream since June 2026. Consider using 'lean4' instead."; # Added 2026-11-17
|
||||
ledger-agent = throw "ledger-agent has been removed because upstream dropped Ledger support"; # Added 2026-03-11
|
||||
ledger-autosync = throw "ledger-autosync has been removed because ofxclient was dropped"; # Added 2026-08-14
|
||||
ledger_agent = throw "ledger-agent has been removed because upstream dropped Ledger support"; # Added 2026-03-11
|
||||
|
||||
Reference in New Issue
Block a user