Skip to content

Commit

Permalink
Add Pixi (#9)
Browse files Browse the repository at this point in the history
* Add Pixi

* Add Pixi libc

* Fix Pixi libc

* Revert Pixi libc (it only has a musl build on Linux)
  • Loading branch information
W1M0R authored Aug 11, 2024
1 parent c412e50 commit 53d7f1b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ninja = "1.11.1"
octopus = "2.2.1"
oxlint = "0.2.12"
pact_verifier_cli = "1.1.1"
pixi = "0.25.0"
rattler-build = "0.13.0"
ruff = "0.3.0"
shellcheck = "0.10.0"
Expand Down Expand Up @@ -61,6 +62,7 @@ ninja = "source:ninja/plugin.toml"
octopus = "source:octopus/plugin.toml"
oxlint = "source:oxlint/plugin.toml"
pact_verifier_cli = "source:pact_verifier_cli/plugin.toml"
pixi = "source:pixi/plugin.toml"
rattler-build = "source:rattler-build/plugin.toml"
ruff = "source:ruff/plugin.toml"
shellcheck = "source:shellcheck/plugin.toml"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A growing collection of proto TOML plugins.
- [oxlint](oxlint/README.md)
- [Octopus CLI](octopus/README.md)
- [Pact Verifier CLI](pact_verifier_cli/README.md)
- [Pixi](pixi/README.md)
- [rattler-build](rattler-build/README.md)
- [Ruff](ruff/README.md)
- [ShellCheck](shellcheck/README.md)
Expand Down
21 changes: 21 additions & 0 deletions pixi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# pixi plugin

[pixi](https://github.com/prefix-dev/pixi) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running:

### Global install

```shell
proto plugin add pixi "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/pixi/plugin.toml" --global
proto install pixi
```

### Per-project install

```shell
proto plugin add pixi "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/pixi/plugin.toml"
proto pin pixi latest --resolve
```
17 changes: 17 additions & 0 deletions pixi/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = "pixi"
type = "cli"

[resolve]
git-url = "https://github.com/prefix-dev/pixi"

[platform.linux]
download-file = "pixi-{arch}-unknown-linux-musl.tar.gz"

[platform.macos]
download-file = "pixi-{arch}-apple-darwin.tar.gz"

[platform.windows]
download-file = "pixi-{arch}-pc-windows-msvc.zip"

[install]
download-url = "https://github.com/prefix-dev/pixi/releases/download/v{version}/{download_file}"

0 comments on commit 53d7f1b

Please sign in to comment.