11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
19 hash = "sha256-sh4EeK9LGY1t7BDWV31pOjp6CYhOIRR/wCb6LAv68ok=";
22 cargoHash = "sha256-PU6r6Iwv00TLhAZSt9hERWvCgpC27Cuf3rrsjN1gO5k=";
24 buildInputs = lib.optionals stdenv.isDarwin [
25 darwin.apple_sdk.frameworks.SystemConfiguration
28 nativeBuildInputs = [ makeBinaryWrapper pkg-config ];
30 # Tests requires network access
32 cargoBuildFlags = [ "--bin proto" "--bin proto-shim" ];
35 # proto looks up a proto-shim executable file in $PROTO_LOOKUP_DIR
36 wrapProgram $out/bin/${pname} \
37 --set PROTO_LOOKUP_DIR $out/bin
41 description = "A pluggable multi-language version manager";
43 proto is a pluggable next-generation version manager for multiple programming languages. A unified toolchain.
45 homepage = "https://moonrepo.dev/proto";
46 changelog = "https://github.com/moonrepo/proto/releases/tag/v${version}";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ nokazn ];
49 mainProgram = "proto";
50 platforms = lib.platforms.linux ++ lib.platforms.darwin;