mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
Add leangz (leantar) as a new build and runtime dependency. https://github.com/leanprover/lean4/releases/tag/v4.30.0 https://github.com/leanprover-community/mathlib4/blob/v4.30.0/lake-manifest.json
38 lines
872 B
Nix
38 lines
872 B
Nix
{
|
|
lib,
|
|
buildLakePackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildLakePackage (finalAttrs: {
|
|
pname = "lean4-cli";
|
|
# nixpkgs-update: no auto update
|
|
version = "4.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leanprover";
|
|
repo = "lean4-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-oMaqHvWlEfk1601JfNKPvkGIWgMW6tiF7Mej7g63vh0=";
|
|
};
|
|
|
|
leanPackageName = "Cli";
|
|
|
|
# Pre-build static library for downstream executables.
|
|
# TODO: upstream this to lean4-cli
|
|
postPatch = ''
|
|
substituteInPlace lakefile.toml \
|
|
--replace-fail '[[lean_lib]]
|
|
name = "Cli"' '[[lean_lib]]
|
|
name = "Cli"
|
|
defaultFacets = ["static"]'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command-line argument parser for Lean 4";
|
|
homepage = "https://github.com/leanprover/lean4-cli";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nadja-y ];
|
|
};
|
|
})
|