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

2024-06-10 13:52:16 +03:00
{
lib,
rustPlatform,
fetchFromGitHub,
kclvm,
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";
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";
cargoHash = "sha256-ZhrjxHqwWwcVkCVkJJnVm2CZLfRlrI2383ejgI+B2KQ=";
2024-06-10 13:52:16 +03:00
cargoPatches = [ ./cargo_lock.patch ];
buildInputs = [
kclvm
rustc
];
2024-06-10 13:52:16 +03:00
meta = with lib; {
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;
platforms = platforms.linux ++ platforms.darwin;
2024-06-10 13:52:16 +03:00
maintainers = with maintainers; [
selfuryon
peefy
];
mainProgram = "kclvm_cli";
};
}