11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
19 hash = "sha256-FkuHKfrMH+l/k9lfFhbG619KoDIxmEYwoaniHSPF8hQ=";
22 cargoHash = "sha256-vll9ckegcECmzoOkTCe2q2M1r4s5JlUnv2DtzJEQ7bY=";
24 buildInputs = lib.optionals stdenv.hostPlatform.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/proto \
37 --set PROTO_LOOKUP_DIR $out/bin
41 description = "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;