98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
41 lines
986 B
Nix
41 lines
986 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, protobuf
|
|
, pkg-config
|
|
,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kclvm";
|
|
version = "0.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kcl-lang";
|
|
repo = "kcl";
|
|
rev = "v${version}";
|
|
hash = "sha256-ieGpuNkzT6AODZYUcEanb7Jpb+PXclnQ9KkdmlehK0o=";
|
|
};
|
|
|
|
sourceRoot = "source/kclvm";
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"inkwell-0.2.0" = "sha256-JxSlhShb3JPhsXK8nGFi2uGPp8XqZUSiqniLBrhr+sM=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config protobuf ];
|
|
|
|
patches = [ ./enable_protoc_env.patch ];
|
|
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
|
|
|
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 ];
|
|
};
|
|
}
|