mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
32 lines
778 B
Nix
32 lines
778 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, kclvm
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kclvm_cli";
|
|
version = "0.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kcl-lang";
|
|
repo = "kcl";
|
|
rev = "v${version}";
|
|
hash = "sha256-ieGpuNkzT6AODZYUcEanb7Jpb+PXclnQ9KkdmlehK0o=";
|
|
};
|
|
|
|
sourceRoot = "source/cli";
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
cargoPatches = [ ./cargo_lock.patch ];
|
|
|
|
buildInputs = [ kclvm ];
|
|
|
|
meta = with lib; {
|
|
description = "A 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;
|
|
maintainers = with maintainers; [ selfuryon peefy ];
|
|
mainProgram = "kclvm_cli";
|
|
};
|
|
}
|