Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
882 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
kclvm,
rustc,
}:
rustPlatform.buildRustPackage rec {
pname = "kclvm_cli";
version = "0.11.0";
src = fetchFromGitHub {
owner = "kcl-lang";
repo = "kcl";
rev = "v${version}";
hash = "sha256-wRmLXR1r/FtZVfc6jifEj0jS0U0HIgJzBtuuzLQchjo=";
};
sourceRoot = "${src.name}/cli";
cargoHash = "sha256-ZhrjxHqwWwcVkCVkJJnVm2CZLfRlrI2383ejgI+B2KQ=";
cargoPatches = [ ./cargo_lock.patch ];
buildInputs = [
kclvm
rustc
];
meta = with lib; {
description = "High-performance implementation of KCL written in Rust that uses LLVM as the compiler backend";
homepage = "https://github.com/kcl-lang/kcl";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [
selfuryon
peefy
];
mainProgram = "kclvm_cli";
};
}