diff options
author | nokazn <41154684+nokazn@users.noreply.github.com> | 2024-04-04 18:12:22 +0900 |
---|---|---|
committer | nokazn <41154684+nokazn@users.noreply.github.com> | 2024-04-05 03:01:26 +0900 |
commit | b42ac809231651028ac50ffb38d41857348b9ee1 (patch) | |
tree | f58558a566bfd85a1af1fa8095556a5805e3bbe0 /pkgs/by-name/pr | |
parent | 9d735480037ee45a1f64063dc872e7e44db2e910 (diff) |
proto: init at 0.32.2
Diffstat (limited to 'pkgs/by-name/pr')
-rw-r--r-- | pkgs/by-name/pr/proto/package.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/by-name/pr/proto/package.nix b/pkgs/by-name/pr/proto/package.nix new file mode 100644 index 0000000000000..62ca8f2b025de --- /dev/null +++ b/pkgs/by-name/pr/proto/package.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, darwin +, libiconv +, makeBinaryWrapper +, pkg-config +}: + +rustPlatform.buildRustPackage rec { + pname = "proto"; + version = "0.32.2"; + + src = fetchFromGitHub { + owner = "moonrepo"; + repo = pname; + rev = "v${version}"; + hash = "sha256-QxaVXggVfr3O26RwSuUx4qpabhWE9+ZFLKRin/ya2e4="; + }; + + cargoHash = "sha256-j5wXmlauhrUnUVTj/KyqDrf1y9bq3ZInREZXIUQImVE="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.SystemConfiguration + libiconv + ]; + nativeBuildInputs = [ makeBinaryWrapper pkg-config ]; + + # Tests requires network access + doCheck = false; + cargoBuildFlags = [ "--bin proto" "--bin proto-shim" ]; + + postInstall = '' + # proto looks up a proto-shim executable file in $PROTO_LOOKUP_DIR + wrapProgram $out/bin/${pname} \ + --set PROTO_LOOKUP_DIR $out/bin + ''; + + meta = { + description = "A pluggable multi-language version manager"; + longDescription = '' + proto is a pluggable next-generation version manager for multiple programming languages. A unified toolchain. + ''; + homepage = "https://moonrepo.dev/proto"; + changelog = "https://github.com/moonrepo/proto/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ nokazn ]; + mainProgram = "proto"; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + }; +} |