about summary refs log tree commit diff
path: root/pkgs/by-name/kc/kclvm_cli/package.nix
blob: ad1aecafaffd83ab4deaaa0ddfca48d953c0db80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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";
  };
}