kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.62k stars 113 forks source link

Support building package via nix on MacOS aarch64 #1462

Closed YvanDaSilva closed 2 months ago

YvanDaSilva commented 3 months ago

Enhancement

Enable kcl to be built for package managers such as nix which use the protoc-bin-vendored for macos aarch64 platform.

A change is currently waiting to be merged here: https://github.com/stepancheg/rust-protoc-bin-vendored/pull/3

For now the output of the nix kcl package on that platform is:

       error: Package 'kcl-0.8.9' in /nix/store/4p0avw1s3vf27hspgqsrqs37gxk4i83i-source/pkgs/by-name/kc/kcl/package.nix:49 is not available on the requested hostPlatform:
         hostPlatform.config = "aarch64-apple-darwin"

nix package: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/kc/kcl/package.nix#L1

Peefy commented 3 months ago

Related Track Issue: https://github.com/kcl-lang/kcl/issues/1169 and Related PR: https://github.com/kcl-lang/kcl/pull/1463

Peefy commented 2 months ago

Closed by https://github.com/NixOS/nixpkgs/pull/327390