mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
nix-update-script,
|
|
curl,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "leo-lang";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProvableHQ";
|
|
repo = "leo";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-VDhD2devY2GPa2vGbZ0hSg1tIc6WJ5pgyDM6RsSb12U=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [ ./0001-remove-update-subcommand.patch ];
|
|
|
|
cargoHash = "sha256-PI2DviLVtlNFohRSOkGx7SQd2sh4jMKZKzw7RMKNw+o=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ curl ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/leo";
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
checkFlags = [
|
|
"--skip=cli::cli::tests::nested_local_dependency_run_test"
|
|
"--skip=cli::cli::tests::relaxed_shadowing_run_test"
|
|
"--skip=cli::cli::tests::relaxed_struct_shadowing_run_test"
|
|
];
|
|
|
|
meta = {
|
|
description = "Functional, statically-typed programming language built for writing private applications";
|
|
homepage = "https://github.com/ProvableHQ/leo";
|
|
changelog = "https://github.com/ProvableHQ/leo/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [ anstylian ];
|
|
mainProgram = "leo";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|