2024-06-10 13:52:16 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
kclvm,
|
2024-07-25 17:38:45 +02:00
|
|
|
rustc,
|
2024-06-10 13:52:16 +03:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kclvm_cli";
|
2024-12-18 13:23:17 +00:00
|
|
|
version = "0.11.0";
|
2024-06-10 13:52:16 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kcl-lang";
|
|
|
|
repo = "kcl";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2024-12-18 13:23:17 +00:00
|
|
|
hash = "sha256-wRmLXR1r/FtZVfc6jifEj0jS0U0HIgJzBtuuzLQchjo=";
|
2024-06-10 13:52:16 +03:00
|
|
|
};
|
|
|
|
|
2024-08-02 14:53:11 +02:00
|
|
|
sourceRoot = "${src.name}/cli";
|
2025-07-15 13:27:09 +02:00
|
|
|
|
2025-01-23 08:45:31 +01:00
|
|
|
cargoHash = "sha256-ZhrjxHqwWwcVkCVkJJnVm2CZLfRlrI2383ejgI+B2KQ=";
|
2024-06-10 13:52:16 +03:00
|
|
|
cargoPatches = [ ./cargo_lock.patch ];
|
|
|
|
|
2025-04-14 09:29:14 -04:00
|
|
|
buildInputs = [
|
|
|
|
kclvm
|
|
|
|
rustc
|
|
|
|
];
|
2024-06-10 13:52:16 +03:00
|
|
|
|
|
|
|
meta = with lib; {
|
2025-06-05 09:11:29 -07:00
|
|
|
description = "High-performance implementation of KCL written in Rust that uses LLVM as the compiler backend";
|
2024-06-10 13:52:16 +03:00
|
|
|
homepage = "https://github.com/kcl-lang/kcl";
|
|
|
|
license = licenses.asl20;
|
2024-07-25 17:38:45 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-06-10 13:52:16 +03:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
selfuryon
|
|
|
|
peefy
|
|
|
|
];
|
|
|
|
mainProgram = "kclvm_cli";
|
|
|
|
};
|
|
|
|
}
|