nixpkgs/pkgs/by-name/kc/kclvm_cli/package.nix

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

42 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-10 10:52:16 +00:00
{ lib
, stdenv
2024-06-10 10:52:16 +00:00
, rustPlatform
, fetchFromGitHub
, kclvm
, darwin
, rustc
,
2024-06-10 10:52:16 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "kclvm_cli";
version = "0.9.3";
2024-06-10 10:52:16 +00:00
src = fetchFromGitHub {
owner = "kcl-lang";
repo = "kcl";
rev = "v${version}";
hash = "sha256-nk5oJRTBRj0LE2URJqno8AoZ+/342C2tEt8d6k2MAc8=";
2024-06-10 10:52:16 +00:00
};
sourceRoot = "source/cli";
cargoHash = "sha256-LZUE2J/UYepl5BGf4T4eWKIZfN3mVJtMDLtm0uUmvI8=";
2024-06-10 10:52:16 +00:00
cargoPatches = [ ./cargo_lock.patch ];
buildInputs = [ kclvm rustc ] ++ (
lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
]
);
2024-06-10 10:52:16 +00:00
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 ++ platforms.darwin;
2024-06-10 10:52:16 +00:00
maintainers = with maintainers; [ selfuryon peefy ];
mainProgram = "kclvm_cli";
};
}